Borderou de evaluare (job #2178429)
Utilizator | Data | 19 martie 2018 14:32:17 | |
---|---|---|---|
Problema | Ecuatii 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:63:24: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
prelucreaza(a,b);
^
user.cpp:30:6: note: initializing argument 1 of ‘void prelucreaza(int&, int&)’
void prelucreaza(int &a,int &b)
^
user.cpp:65:26: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
prelucreaza(a1,b1);
^
user.cpp:30:6: note: initializing argument 1 of ‘void prelucreaza(int&, int&)’
void prelucreaza(int &a,int &b)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !