Borderou de evaluare (job #3212012)
Utilizator | Data | 10 martie 2024 22:05:41 | |
---|---|---|---|
Problema | TollRoads | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int solve(int, int, int)':
main.cpp:30:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(int j = 0;j < adj[node].size();++j)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:72:41: error: invalid conversion from 'std::vector<std::vector<int> >*' to 'int' [-fpermissive]
72 | cout << solve(n, s - 1, adj, t) << "\n";
| ^~~
| |
| std::vector<std::vector<int> >*
main.cpp:72:30: error: too many arguments to function 'int solve(int, int, int)'
72 | cout << solve(n, s - 1, adj, t) << "\n";
| ~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:8:5: note: declared here
8 | int solve(int n, int s, int t)
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !