Borderou de evaluare (job #2194785)
Utilizator | Data | 14 aprilie 2018 13:17:39 | |
---|---|---|---|
Problema | Fractii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:8: error: ‘MAX’ was not declared in this scope
int fi[MAX],n;
^~~
user.cpp: In function ‘int main()’:
user.cpp:11:8: error: ‘fi’ was not declared in this scope
fi[i]=i;
^~
user.cpp:10:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)
^~~
user.cpp:12:8: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
for(int i=1;i<=n;i++)
^~~
user.cpp:13:11: error: ‘fi’ was not declared in this scope
if(fi[i]=i)
^~
user.cpp:18:18: error: ‘fi’ was not declared in this scope
ans=ans+2*fi[i];
^~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !