Borderou de evaluare (job #1505856)
Utilizator | Data | 19 octombrie 2015 20:12:56 | |
---|---|---|---|
Problema | Bete2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void cautareb(int, int, int*)’:
user.cpp:27:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
return 1;
^
user.cpp:31:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
return 0;
^
user.cpp: In function ‘int main()’:
user.cpp:51:14: error: invalid operands of types ‘int’ and ‘void’ to binary ‘operator+’
s+=cautareb(a,x,v);
^
user.cpp:51:14: error: in evaluation of ‘operator+=(int, void)’
user.cpp:38:11: warning: unused variable ‘b’ [-Wunused-variable]
int a,b,c,x,s=0;
^
user.cpp:38:13: warning: unused variable ‘c’ [-Wunused-variable]
int a,b,c,x,s=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !