Borderou de evaluare (job #599851)

Utilizator avatar Mihai_Ariton Mihai Ariton Mihai_Ariton IP ascuns
Problemă Patru (baraj gimnaziu) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 iun. 2021 15:30:25 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:5: error: expected ',' or ';' before 'long' 11 | long long int n, a, k, s=0, cnt=0, r=1000, l=0, mid, cnt2=0, ok=0; | ^~~~ main.cpp:12:10: error: 'n' was not declared in this scope 12 | cin>>n>>k; | ^ main.cpp:12:13: error: 'k' was not declared in this scope 12 | cin>>n>>k; | ^ main.cpp:23:13: error: 's' was not declared in this scope 23 | s+=0; | ^ main.cpp:25:13: error: 's' was not declared in this scope 25 | s+=1; | ^ main.cpp:27:13: error: 's' was not declared in this scope 27 | s+=6; | ^ main.cpp:29:13: error: 's' was not declared in this scope 29 | s+=1; | ^ main.cpp:31:13: error: 's' was not declared in this scope 31 | s+=6; | ^ main.cpp:33:13: error: 's' was not declared in this scope 33 | s+=5; | ^ main.cpp:35:13: error: 's' was not declared in this scope 35 | s+=6; | ^ main.cpp:37:13: error: 's' was not declared in this scope 37 | s+=1; | ^ main.cpp:39:13: error: 's' was not declared in this scope 39 | s+=6; | ^ main.cpp:41:13: error: 's' was not declared in this scope 41 | s+=1; | ^ main.cpp:44:12: error: 's' was not declared in this scope 44 | if(s%10==4) | ^ main.cpp:45:9: error: 'cnt' was not declared in this scope; did you mean 'int'? 45 | cnt++; | ^~~ | int main.cpp:46:9: error: 's' was not declared in this scope 46 | s=0; | ^