Borderou de evaluare (job #602849)

Utilizator avatar Mihai_Ariton Mihai Ariton Mihai_Ariton IP ascuns
Problemă Pyk (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 aug. 2021 09:29:47 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:66: error: expected unqualified-id before ';' token 8 | long long n, a, k, c, ult, ca, maxnr=-1, minnr=210000000000, ; | ^ main.cpp:22:21: error: 'ok' was not declared in this scope; did you mean 'k'? 22 | ok=1; | ^~ | k main.cpp:28:16: error: 'ok' was not declared in this scope; did you mean 'k'? 28 | if(ok==0) | ^~ | k main.cpp:35:13: error: 'ok' was not declared in this scope; did you mean 'k'? 35 | ok=0; | ^~ | k main.cpp:45:17: error: 'p' was not declared in this scope 45 | p=0; | ^ main.cpp:46:25: error: 'd' was not declared in this scope 46 | while(a%d==0) | ^ main.cpp:52:19: error: 'd' was not declared in this scope 52 | f[d]+=p; | ^ main.cpp:53:17: error: 'd' was not declared in this scope 53 | d++; | ^ main.cpp:59:13: error: 'd' was not declared in this scope 59 | d=2; | ^