Borderou de evaluare (job #2237372)
Utilizator | Data | 1 septembrie 2018 17:47:41 | |
---|---|---|---|
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:13:18: error: ‘s’ was not declared in this scope
in>>a[i];s+=a[i];
^
user.cpp:17:26: error: ‘s’ was not declared in this scope
maxim=max(maxim, s-a[i]-a[i+1]-a[i+2]+(a[i]*a[i+1]*a[i+2]));
^
user.cpp:23:30: error: ‘s’ was not declared in this scope
maxim=max(maxim, s-a[i]-a[i+1]-a[j]-a[j+1]+a[i]*a[i+1]+a[j]*a[j+1]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !