Borderou de evaluare (job #1060669)
Utilizator | Data | 18 decembrie 2013 13:18:24 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:41: error: size of array ‘adj’ is too large
int num_nodes, num_edges, adj[SIZE][SIZE], x, y;
^
user.cpp: In function ‘int main()’:
user.cpp:27:3: error: ‘adj’ was not declared in this scope
adj[x][y] = 1;
^
user.cpp:32:5: error: ‘adj’ was not declared in this scope
adj[i][j] = (adj[i][j] || (adj[i][k] && adj[k][j]));
^
user.cpp:36:7: error: ‘adj’ was not declared in this scope
if(adj[i][j] && adj[j][i]) {a[i].push_back(j); a[j].push_back(i);}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !