#4204
| Problema | esteArbore | Operații I/O |
estearbore.in/estearbore.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64104522 | Utilizator | |
| Fișier | estearbore.cpp | Dimensiune | 517 B |
| Data încărcării | 17 Aprilie 2026, 09:41 | Scor/rezultat | Eroare de compilare |
estearbore.cpp: In function ‘int main()’: estearbore.cpp:11:2: error: expected primary-expression before ‘}’ token 11 | } | ^ estearbore.cpp: At global scope: estearbore.cpp:12:2: error: ‘pi’ does not name a type 12 | pi=ps=1; | ^~ estearbore.cpp:13:6: error: ‘c’ does not name a type 13 | c[pi]=1; | ^ estearbore.cpp:14:2: error: ‘viz’ does not name a type 14 | viz[1]=1; | ^~~ estearbore.cpp:15:2: error: expected unqualified-id before ‘while’ 15 | while(ps<=pi) | ^~~~~ estearbore.cpp:24:2: error: expected unqualified-id before ‘if’ 24 | if(n==pi && n==m+1) | ^~ estearbore.cpp:26:5: error: expected unqualified-id before ‘else’ 26 | else | ^~~~ estearbore.cpp:28:2: error: ‘fin’ does not name a type 28 | fin.close(); | ^~~ estearbore.cpp:29:2: error: ‘fout’ does not name a type 29 | fout.close(); | ^~~~ estearbore.cpp:30:2: error: expected unqualified-id before ‘return’ 30 | return 0;} | ^~~~~~ estearbore.cpp:30:11: error: expected declaration before ‘}’ token 30 | return 0;} | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema esteArbore 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ă.