Borderou de evaluare (job #705342)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Concurs (clasa a 5-a) | Compilator | cpp-32 |
Rundă | superoji2 | Status | evaluat |
Dată | 12 mar. 2023 21:22:00 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:11: error: expected initializer before 'p'
9 | int h p,d,n,i,x,c1=0,c2=0,ok=0;
| ^
main.cpp:10:10: error: 'h' was not declared in this scope
10 | cin>>h;
| ^
main.cpp:11:10: error: 'n' was not declared in this scope
11 | cin>>n;
| ^
main.cpp:12:5: error: 'p' was not declared in this scope
12 | p=h/100;
| ^
main.cpp:13:5: error: 'd' was not declared in this scope
13 | d=h/10%10;
| ^
main.cpp:14:9: error: 'i' was not declared in this scope
14 | for(i=1; i<=n; i++){
| ^
main.cpp:15:14: error: 'x' was not declared in this scope
15 | cin>>x;
| ^
main.cpp:17:13: error: 'ok' was not declared in this scope
17 | ok++;
| ^~
main.cpp:20:13: error: 'c1' was not declared in this scope
20 | c1++;
| ^~
main.cpp:23:13: error: 'c2' was not declared in this scope
23 | c2++;
| ^~
main.cpp:26:8: error: 'ok' was not declared in this scope
26 | if(ok==0)
| ^~
main.cpp:31:11: error: 'c1' was not declared in this scope
31 | cout<<c1<<endl;
| ^~
main.cpp:32:11: error: 'c2' was not declared in this scope
32 | cout<<c2;
| ^~