Borderou de evaluare (job #2455992)
Utilizator | Data | 13 septembrie 2019 11:44:34 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:187:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
main.cpp: In function 'int main()':
main.cpp:200:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
upd(x);
^
main.cpp:182:6: note: initializing argument 1 of 'void upd(int&)'
void upd(int &x)
^~~
main.cpp:201:14: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
upd(y);
^
main.cpp:182:6: note: initializing argument 1 of 'void upd(int&)'
void upd(int &x)
^~~
main.cpp:215:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
upd(x1);
^
main.cpp:182:6: note: initializing argument 1 of 'void upd(int&)'
void upd(int &x)
^~~
main.cpp:216:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
upd(y1);
^
main.cpp:182:6: note: initializing argument 1 of 'void upd(int&)'
void upd(int &x)
^~~
main.cpp:217:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
upd(x2);
^
main.cpp:182:6: note: initializing argument 1 of 'void upd(int&)'
void upd(int &x)
^~~
main.cpp:218:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
upd(y2);
^
main.cpp:182:6: note: initializing argument 1 of 'void upd(int&)'
void upd(int &x)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !