Borderou de evaluare (job #2305928)
Utilizator | Data | 21 decembrie 2018 12:36:22 | |
---|---|---|---|
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 GetInt(int&)':
main.cpp:52:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:59:13: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
GetInt(n);
^
main.cpp:39:5: note: initializing argument 1 of 'int GetInt(int&)'
int GetInt(int &a) {
^~~~~~
main.cpp:60:13: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
GetInt(k);
^
main.cpp:39:5: note: initializing argument 1 of 'int GetInt(int&)'
int GetInt(int &a) {
^~~~~~
main.cpp:72:31: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
GetInt(matrix[i][j]);
~~~~~~~~~~~^
main.cpp:39:5: note: initializing argument 1 of 'int GetInt(int&)'
int 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 !