Borderou de evaluare (job #1124554)
Utilizator | Data | 26 februarie 2014 12:42:27 | |
---|---|---|---|
Problema | Expresie | 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:33:67: error: expected ‘;’ before ‘}’ token
if(max1*v[n1-1]>max2) {max2=max1*v[n1-1];s+=max2;n3=n2;n4=n3+1}
^
user.cpp:8:47: warning: unused variable ‘ok’ [-Wunused-variable]
int n,i,max1=0,max2=0,n1=0,n2=0,n3=0,n4=0,ok=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !