Borderou de evaluare (job #2239335)
Utilizator | Data | 10 septembrie 2018 16:23:10 | |
---|---|---|---|
Problema | Simpla | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int rezz(int)’:
user.cpp:20:5: error: expected ‘;’ before ‘int’
int np=x%10/2,ni=np;
^~~
user.cpp:20:24: warning: statement has no effect [-Wunused-value]
int np=x%10/2,ni=np;
^
user.cpp:21:17: error: ‘ni’ was not declared in this scope
if(x%10%2) ni=np+1;
^~
user.cpp:21:20: error: ‘np’ was not declared in this scope
if(x%10%2) ni=np+1;
^~
user.cpp:22:18: error: ‘np’ was not declared in this scope
if(s%2) rez+=np;
^~
user.cpp:23:18: error: ‘ni’ was not declared in this scope
else rez+=ni;
^~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !