Borderou de evaluare (job #3194394)
Utilizator | Data | 17 ianuarie 2024 20:17:25 | |
---|---|---|---|
Problema | Tairos | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:1: error: expected initializer before 'vector'
13 | vector<int> g[101];
| ^~~~~~
main.cpp: In function 'void dfs(int)':
main.cpp:22:17: error: 'g' was not declared in this scope
22 | for(int u : g[k]) if(!v[u]) dfs(u), frunza = false;
| ^
main.cpp:24:36: error: 'frunze_niv' was not declared in this scope; did you mean 'frunze_init'?
24 | if(frunza) frunze_init[niv]++, frunze_niv[niv] = frunze_init[niv];
| ^~~~~~~~~~
| frunze_init
main.cpp: In function 'int main()':
main.cpp:32:9: error: 'g' was not declared in this scope
32 | g[x].push_back(y), g[y].push_back(x);
| ^
main.cpp:38:51: error: 'frunze_niv' was not declared in this scope; did you mean 'frunze_init'?
38 | noduri_niv[i + j] += noduri_init[j] * frunze_niv[i];
| ^~~~~~~~~~
| frunze_init
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !