Borderou de evaluare (job #670738)

Utilizator avatar DavidIulian Popescu David DavidIulian IP ascuns
Problemă SumL (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 oct. 2022 17:56:55 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:5: error: conflicting declaration 'int n' 7 | int n; | ^ main.cpp:6:15: note: previous declaration as 'long long int n' 6 | long long c,l,n,p,suma[1000]; | ^ main.cpp: In function 'int main()': main.cpp:9:11: error: expected ';' before 'for' 9 | {fin>>n>>p | ^ | ; 10 | for(l=n;l>=1;l--) | ~~~ main.cpp:10:10: warning: statement has no effect [-Wunused-value] 10 | for(l=n;l>=1;l--) | ~^~~ main.cpp:10:17: error: expected ';' before ')' token 10 | for(l=n;l>=1;l--) | ^ | ; main.cpp:20:24: error: 's' was not declared in this scope 20 | for(l=1;l<=n;l++)cout<<s[l]; | ^