Borderou de evaluare (job #3310110)
| Utilizator | Data | 11 septembrie 2025 18:24:54 | |
|---|---|---|---|
| Problema | Diametrul unui arbore | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'const'
5 | const int NMAX=1e5;
| ^~~~~
main.cpp:6:17: error: 'NMAX' was not declared in this scope
6 | vector<int> mat[NMAX+5];
| ^~~~
main.cpp:7:18: error: 'NMAX' was not declared in this scope
7 | vector<int> dist(NMAX+5, 0);
| ^~~~
main.cpp: In function 'void bfs(int)':
main.cpp:16:21: error: 'mat' was not declared in this scope
16 | for(auto it:mat[nod]){
| ^~~
main.cpp: In function 'int main()':
main.cpp:35:9: error: 'mat' was not declared in this scope
35 | mat[x].push_back(y);
| ^~~
main.cpp:40:17: error: 'NMAX' was not declared in this scope
40 | dist.resize(NMAX+5);
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
