Borderou de evaluare (job #2467195)
Utilizator | Data | 3 octombrie 2019 20:13:46 | |
---|---|---|---|
Problema | Robot4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:25:29: error: 'f' was not declared in this scope
int ans=f(n, w, x, 0);
^
main.cpp:27:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (f(n,w,x,i)>ans)
^~
main.cpp:28:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
ans = f(n,w,x,i);p=i;
^
main.cpp:28:36: error: 'i' was not declared in this scope
ans = f(n,w,x,i);p=i;
^
main.cpp:15:21: warning: unused variable 'poz' [-Wunused-variable]
int cer,n,w,x,p,poz,nr=0;
^~~
main.cpp:15:25: warning: unused variable 'nr' [-Wunused-variable]
int cer,n,w,x,p,poz,nr=0;
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !