Borderou de evaluare (job #2697013)
Utilizator | Data | 17 ianuarie 2021 15:05:41 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:2: error: invalid preprocessing directive #defin
#defin MAXSIZE 10010
^~~~~
main.cpp:11:18: error: 'MAXSIZE' was not declared in this scope
vector<int> graf[MAXSIZE];
^~~~~~~
main.cpp:12:10: error: 'MAXSIZE' was not declared in this scope
int dist[MAXSIZE];
^~~~~~~
main.cpp: In function 'void bfs(int)':
main.cpp:16:5: error: 'dist' was not declared in this scope
dist[node] = 1;
^~~~
main.cpp:23:33: error: 'graf' was not declared in this scope
for(int i = 0; i < (int)graf[node].size(); i++)
^~~~
main.cpp: In function 'int main()':
main.cpp:43:9: error: 'graf' was not declared in this scope
graf[x].push_back(y);
^~~~
main.cpp:51:12: error: 'dist' was not declared in this scope
if(dist[i] > maximum)
^~~~
main.cpp:59:9: error: 'dist' was not declared in this scope
dist[i] = 0;
^~~~
main.cpp:65:32: error: 'dist' was not declared in this scope
maximum = max(maximum, dist[i]);
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !