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 | #50454579 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 1.37 KB |
Data încărcării | 10 Aprilie 2024, 10:46 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:6:1: error: expected ',' or ';' before 'int' int n,mat[100][100],viz[100]; ^ estearbore.cpp: In function 'void citire()': estearbore.cpp:10:10: error: 'n' was not declared in this scope fin>>n>>m; ^ estearbore.cpp:13:9: error: 'mat' was not declared in this scope mat[x][y]=1; ^ estearbore.cpp: In function 'void citire2()': estearbore.cpp:22:10: error: 'n' was not declared in this scope fin>>n; ^ estearbore.cpp:24:9: error: 'mat' was not declared in this scope mat[x][y]=1; ^ estearbore.cpp: In function 'void bfs(int)': estearbore.cpp:35:5: error: 'viz' was not declared in this scope viz[start]=1; ^ estearbore.cpp:38:24: error: 'n' was not declared in this scope for(int i=1;i<=n;i++){ ^ estearbore.cpp:39:16: error: 'mat' was not declared in this scope if(mat[x][i] && viz[i]==0){ ^ estearbore.cpp: In function 'int eulerian()': estearbore.cpp:50:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ estearbore.cpp:51:12: error: 'viz' was not declared in this scope if(viz[i]==0 || mat[i][0]%2==1) ^ estearbore.cpp:51:25: error: 'mat' was not declared in this scope if(viz[i]==0 || mat[i][0]%2==1) ^ estearbore.cpp: In function 'int arbore()': estearbore.cpp:59:19: error: 'n' was not declared in this scope for(int i=1;i<n;i++) ^ estearbore.cpp:61:16: error: 'mat' was not declared in this scope if(mat[i][j]) ^ estearbore.cpp:63:11: error: 'n' was not declared in this scope if(m!=n-1) ^ estearbore.cpp:66:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ estearbore.cpp:67:12: error: 'viz' was not declared in this scope if(viz[i]==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ă.