Borderou de evaluare (job #725811)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Fantasy Premier League | Compilator | cpp-32 |
Rundă | Concurs 1- Grupa Incepatori - Tabara Nerdvana 2023 | Status | evaluat |
Dată | 5 iul. 2023 15:26:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:5: error: 'fin' was not declared in this scope; did you mean 'cin'?
9 | fin>>cer>>n;
| ^~~
| cin
main.cpp:28:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
28 | if(nr1%2==1)
| ^~
main.cpp:30:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
30 | nr1/=2;
| ^~~
main.cpp:31:17: error: 'else' without a previous 'if'
31 | else
| ^~~~
main.cpp:41:9: error: 'i' was not declared in this scope; did you mean 'it'?
41 | for(i=n;i>0;i--)
| ^
| it
main.cpp:46:13: error: 'pr' was not declared in this scope; did you mean 'nr'?
46 | pr=l;
| ^~
| nr
main.cpp:8:11: warning: unused variable 'x' [-Wunused-variable]
8 | int n,x,cer,pct=0,max=0,pozitie=0,y,l=0,p=0,xx=0,nr,nr1;
| ^
main.cpp:8:49: warning: unused variable 'xx' [-Wunused-variable]
8 | int n,x,cer,pct=0,max=0,pozitie=0,y,l=0,p=0,xx=0,nr,nr1;
| ^~