Borderou de evaluare (job #2305930)
Utilizator | Data | 21 decembrie 2018 12:38:25 | |
---|---|---|---|
Problema | Joc13 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:58:13: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
GetInt(n);
^
main.cpp:39:6: note: initializing argument 1 of 'void GetInt(int&)'
void GetInt(int &a) {
^~~~~~
main.cpp:59:13: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
GetInt(k);
^
main.cpp:39:6: note: initializing argument 1 of 'void GetInt(int&)'
void GetInt(int &a) {
^~~~~~
main.cpp:64:21: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
GetInt(h);
^
main.cpp:39:6: note: initializing argument 1 of 'void GetInt(int&)'
void GetInt(int &a) {
^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !