Borderou de evaluare (job #649861)

Utilizator avatar seby-the-kydo Nerdvana 8 Georgescu Sebastian seby-the-kydo IP ascuns
Problemă La școală (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 11 mai 2022 18:11:16 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:26:11: error: 'pr' was not declared in this scope; did you mean 'pre'? 26 | n-k=pr; | ^~ | pre main.cpp:27:8: error: lvalue required as left operand of assignment 27 | p*p=k; | ~^~ main.cpp:31:47: error: expected ';' before 'endl' 31 | cout << k << k-1 << k-2 << k-3 << k-4 endl; | ^~~~~ | ; main.cpp:12:28: warning: unused variable 'pre' [-Wunused-variable] 12 | int n,k,p,a=1,r, maxa=0,pre,cnt=0; | ^~~ main.cpp:12:32: warning: unused variable 'cnt' [-Wunused-variable] 12 | int n,k,p,a=1,r, maxa=0,pre,cnt=0; | ^~~