Borderou de evaluare (job #3374010)
| Utilizator | Data | 8 noiembrie 2026 14:14:13 | |
|---|---|---|---|
| Problema | Sate | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void parcurgere(std::vector<std::vector<std::pair<int, int> > >&, std::vector<int>&, int, int)':
main.cpp:14:29: error: 'graf' was not declared in this scope
14 | for(int nrdrum=0;nrdrum<graf[sat].size();nrdrum++)
| ^~~~
main.cpp:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
15 | if(poz[graph[sat][nrdrum].first]==-1);
| ^~
main.cpp:16:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
16 | parcurgere(graph,poz,graph[sat][nrdrum].first,
| ^~~~~~~~~~
main.cpp:16:45: error: 'nrdrum' was not declared in this scope
16 | parcurgere(graph,poz,graph[sat][nrdrum].first,
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:37:22: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<long long int>'
37 | parcurgere(graph,poz,1,0);
| ^~~
main.cpp:10:30: note: in passing argument 2 of 'void parcurgere(std::vector<std::vector<std::pair<int, int> > >&, std::vector<int>&, int, int)'
10 | vector<int> &poz, int sat, int pozsat)
| ~~~~~~~~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
