#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 | #63913318 | Utilizator | |
| Fișier | estearbore.cpp | Dimensiune | 654 B |
| Data încărcării | 26 Martie 2026, 10:19 | Scor/rezultat | Eroare de compilare |
estearbore.cpp:7:10: error: array bound is not an integer constant before ']' token char a[nm][nm], v[nm] ; ^ estearbore.cpp:7:14: error: array bound is not an integer constant before ']' token char a[nm][nm], v[nm] ; ^ estearbore.cpp:7:21: error: array bound is not an integer constant before ']' token char a[nm][nm], v[nm] ; ^ estearbore.cpp: In function 'int pa(int)': estearbore.cpp:11:5: error: 'v' was not declared in this scope v[x]=1; ^ estearbore.cpp:13:12: error: 'a' was not declared in this scope if(a[x][i]==1 and v[i]==0)pa(i); ^ estearbore.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ estearbore.cpp: In function 'int main()': estearbore.cpp:20:12: error: 'a' was not declared in this scope if(a[i][j]==0)m++; ^ estearbore.cpp:21:9: error: 'a' was not declared in this scope a[i][j] = a[j][i] = 1; ^ estearbore.cpp:28:20: error: 'v' was not declared in this scope if(v[i]==0)ok=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ă.