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 | #49507500 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 751 B |
Data încărcării | 05 Martie 2024, 09:35 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:10:8: error: 'nm' was not declared in this scope char a[nm][nm], v[nm] ; ^ estearbore.cpp:10:12: error: 'nm' was not declared in this scope char a[nm][nm], v[nm] ; ^ estearbore.cpp:10:19: error: 'nm' was not declared in this scope char a[nm][nm], v[nm] ; ^ estearbore.cpp: In function 'void citire(int&, int, int&)': estearbore.cpp:19:15: error: invalid types 'int[int]' for array subscript if(a[i][j] == 0) ^ estearbore.cpp:21:12: error: invalid types 'int[int]' for array subscript a[i][j] = a[j][i] = 1; ^ estearbore.cpp:21:22: error: invalid types 'int[int]' for array subscript a[i][j] = a[j][i] = 1; ^ estearbore.cpp: In function 'int pa(int)': estearbore.cpp:28:5: error: 'v' was not declared in this scope v[x]=1; ^ estearbore.cpp:30:12: error: 'a' was not declared in this scope if(a[x][i]==1 and v[i]==0) pa(i); ^ estearbore.cpp:31:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ estearbore.cpp: In function 'int main()': estearbore.cpp:35:15: error: 'a' was not declared in this scope citire(n, a, m); ^ estearbore.cpp:42:16: 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ă.