Borderou de evaluare (job #2307231)
Utilizator | Data | 24 decembrie 2018 03:22:01 | |
---|---|---|---|
Problema | Joculet | 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:54:15: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
sum1(k);
^
main.cpp:33:6: note: initializing argument 1 of 'void sum1(int&)'
void sum1(int &x)
^~~~
main.cpp: In function 'int dif1(int)':
main.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int dif2(int)':
main.cpp:31:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !