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 | #50945987 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 756 B |
Data încărcării | 15 Mai 2024, 12:59 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:7:1: error: expected ',' or ';' before 'ofstream' ofstream fout("estearbore.out") ^ estearbore.cpp: In function 'void BFS(int)': estearbore.cpp:14:5: error: 'c' was not declared in this scope c[1]=x; ^ estearbore.cpp:20:20: error: 'n' was not declared in this scope for(j=1;j<=n;j++) ^ estearbore.cpp:21:16: error: 'a' was not declared in this scope if(a[l][j]==1&&viz[j]==0) ^ estearbore.cpp:21:18: error: 'l' was not declared in this scope if(a[l][j]==1&&viz[j]==0) ^ estearbore.cpp:26:13: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ estearbore.cpp:26:20: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ estearbore.cpp:28:20: error: return-statement with a value, in function returning 'void' [-fpermissive] return 0; ^ estearbore.cpp:30:12: error: return-statement with a value, in function returning 'void' [-fpermissive] return 1; ^ estearbore.cpp: In function 'int main()': estearbore.cpp:39:11: error: 'a' was not declared in this scope if(a[x][y]==0); ^ estearbore.cpp:41:8: error: 'a' was not declared in this scope a[x][y]=a[y][x]=1; ^ estearbore.cpp:47:19: error: invalid operands of types 'void' and 'int' to binary 'operator==' if(BFS(1)==0) ^ estearbore.cpp:35:8: warning: unused variable 'i' [-Wunused-variable] int i,j,x,y,n,m; ^ estearbore.cpp:35:10: warning: unused variable 'j' [-Wunused-variable] int i,j,x,y,n,m; ^ estearbore.cpp:49:4: error: expected '}' at end of input } ^
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ă.