Borderou de evaluare (job #1591101)
Utilizator | Data | 5 februarie 2016 19:38:23 | |
---|---|---|---|
Problema | Politic | 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:12:6: error: redeclaration of ‘int x’
int x=1;
^
user.cpp:7:32: error: ‘int x’ previously declared here
int n, i, v[20005], u[20005], x, y;
^
user.cpp:15:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(v[i]=v[i-1]+1){
^
user.cpp:7:35: warning: unused variable ‘y’ [-Wunused-variable]
int n, i, v[20005], u[20005], x, y;
^
user.cpp:22:6: warning: unused variable ‘mngov’ [-Wunused-variable]
int mngov;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !