Borderou de evaluare (job #2941148)
Utilizator | Data | 17 noiembrie 2022 10:45:39 | |
---|---|---|---|
Problema | Distante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read(int&, int&, int&)':
main.cpp:33:11: warning: unused variable 'b' [-Wunused-variable]
33 | int a,b,c;
| ^
main.cpp:33:13: warning: unused variable 'c' [-Wunused-variable]
33 | int a,b,c;
| ^
main.cpp: In function 'void bellman_ford(int)':
main.cpp:56:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<my_struct>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = 0; i < v[nod_din_coada].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:98:14: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
98 | read(n,m,start);
| ^
main.cpp:23:16: note: initializing argument 1 of 'void read(int&, int&, int&)'
23 | void read(int &N,int &M, int &start)
| ~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !