#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 | #64104644 | Utilizator | |
| Fișier | estearbore.cpp | Dimensiune | 377 B |
| Data încărcării | 17 Aprilie 2026, 09:44 | Scor/rezultat | Eroare de compilare |
estearbore.cpp: In function ‘int main()’: estearbore.cpp:9:13: error: ‘v’ was not declared in this scope 9 | while(fin>>v>>vf) | ^ estearbore.cpp:12:12: error: lvalue required as left operand of assignment 12 | a[vi][vf]==a[vf][vi]=1;} | ~~~~~~~~~^~~~~~~~~~~ estearbore.cpp:19:22: error: expected primary-expression at end of input 19 | if(viz[k]==0 && | ^ estearbore.cpp:19:22: error: expected ‘)’ at end of input 19 | if(viz[k]==0 && | ~ ^ | ) estearbore.cpp:19:22: error: expected statement at end of input estearbore.cpp:18:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 18 | for(k=1;k<=n;k++) | ^~~ estearbore.cpp:19:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 19 | if(viz[k]==0 && | ^ estearbore.cpp:19:22: error: expected ‘}’ at end of input estearbore.cpp:17:2: note: to match this ‘{’ 17 | {z=c[pi]; | ^ estearbore.cpp:19:22: error: expected ‘}’ at end of input 19 | if(viz[k]==0 && | ^ estearbore.cpp:7:1: note: to match this ‘{’ 7 | {fin>>n; | ^
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ă.