Borderou de evaluare (job #2952248)
Utilizator | Data | 8 decembrie 2022 20:51:52 | |
---|---|---|---|
Problema | Indep | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void add(std::vector<int>&, std::vector<int>)':
main.cpp:17:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int i = 0; i < a.size() || t != 0; i++) {
| ~~^~~~~~~~~~
main.cpp:18:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if(i >= a.size()) {
| ~~^~~~~~~~~~~
main.cpp:23:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | if(i < b.size()) {
| ~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:62:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
62 | return;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !