#1330
PartitiiMultime
Fie n
un număr natural nenul și mulțimea A={1,2,3,...,n}
. Să se determine toate partițiile disjuncte ale mulțimii A
.
Problema | PartitiiMultime | Operații I/O |
partitiimultime.in /partitiimultime.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 2 MB
/
Stivă 2 MB
|
Id soluție | #54597902 | Utilizator | |
Fișier | partitiimultime.cpp | Dimensiune | 629 B |
Data încărcării | 03 Decembrie 2024, 12:29 | Scor / rezultat | Eroare de compilare |
partitiimultime.cpp: In function 'int maxim(int)': partitiimultime.cpp:5:15: error: 's' was not declared in this scope if(mx<s[i]) ^ partitiimultime.cpp: In function 'int solutie(int)': partitiimultime.cpp:12:15: error: 'n' was not declared in this scope return k==n; ^ partitiimultime.cpp: In function 'void tipar(int)': partitiimultime.cpp:22:16: error: 's' was not declared in this scope if(s[j]==i) ^ partitiimultime.cpp:23:13: error: 'fout' was not declared in this scope fout<<j; ^ partitiimultime.cpp:24:13: error: 'fout' was not declared in this scope fout<<"*"; ^ partitiimultime.cpp:26:5: error: 'fout' was not declared in this scope fout<<endl; ^ partitiimultime.cpp:26:11: error: 'endl' was not declared in this scope fout<<endl; ^ partitiimultime.cpp: In function 'int bkt(int)': partitiimultime.cpp:34:9: error: 's' was not declared in this scope s[k]=i; ^ partitiimultime.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ partitiimultime.cpp: In function 'int main()': partitiimultime.cpp:43:5: error: 'fin' was not declared in this scope fin>>n; ^ partitiimultime.cpp:43:10: error: 'n' was not declared in this scope fin>>n; ^ partitiimultime.cpp:44:5: error: 's' was not declared in this scope s[1]=1; ^ partitiimultime.cpp: In function 'int solutie(int)': partitiimultime.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PartitiiMultime face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.