Borderou de evaluare (job #720001)

Utilizator avatar haiducii Haiducii haiducii IP ascuns
Problemă Las Fierbinți (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 mai 2023 19:23:31 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:5: error: expected ',' or ';' before 'long' 8 | long long n, cer, a, b, s=0, ca, cb, r, cmmmc=0, q=1, nrdiv=0, w, z; | ^~~~ main.cpp:9:12: error: 'cer' was not declared in this scope 9 | fin >> cer >> n >> a; | ^~~ main.cpp:9:19: error: 'n' was not declared in this scope 9 | fin >> cer >> n >> a; | ^ main.cpp:9:24: error: 'a' was not declared in this scope 9 | fin >> cer >> n >> a; | ^ main.cpp:12:16: error: 'b' was not declared in this scope 12 | fin >> b; | ^ main.cpp:13:9: error: 's' was not declared in this scope 13 | s=(n-(n%a))+(n-(n%b)); | ^ main.cpp:18:16: error: 'b' was not declared in this scope 18 | fin >> b; | ^ main.cpp:19:9: error: 'ca' was not declared in this scope 19 | ca=a; | ^~ main.cpp:20:9: error: 'cb' was not declared in this scope 20 | cb=b; | ^~ main.cpp:23:13: error: 'r' was not declared in this scope 23 | r=ca%cb; | ^ main.cpp:27:9: error: 'cmmmc' was not declared in this scope 27 | cmmmc=a*b/ca; | ^~~~~ main.cpp:28:15: error: 'q' was not declared in this scope 28 | while(q*cmmmc<=n) | ^ main.cpp:30:13: error: 's' was not declared in this scope 30 | s++; | ^ main.cpp:33:17: error: 's' was not declared in this scope 33 | fout << s; | ^ main.cpp:37:15: error: 'nrdiv' was not declared in this scope 37 | while(nrdiv!=2) | ^~~~~ main.cpp:41:17: error: 'q' was not declared in this scope 41 | for(q=1;q<=a;q++) | ^ main.cpp:53:16: error: 'b' was not declared in this scope