Borderou de evaluare (job #1669125)

Utilizator cirje-bogdanCirje Bogdan cirje-bogdan Data 30 martie 2016 13:14:08
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:9:5: error: declaration does not declare anything [-fpermissive] int ; ^ user.cpp:10:10: error: ‘n’ was not declared in this scope cin>>n>>k; ^ user.cpp:10:13: error: ‘k’ was not declared in this scope cin>>n>>k; ^ user.cpp:11:5: error: ‘s’ was not declared in this scope s[0]=0; ^ user.cpp:12:9: error: ‘i’ was not declared in this scope for(i=1;i<=k;i++){ ^ user.cpp:13:10: error: ‘x’ was not declared in this scope cin>>x; ^ user.cpp:15:5: error: ‘smax’ was not declared in this scope smax=sc=s[k]; ^ user.cpp:15:10: error: ‘sc’ was not declared in this scope smax=sc=s[k]; ^ user.cpp:16:5: error: ‘pc’ was not declared in this scope pc=pmax=1; ^ user.cpp:16:8: error: ‘pmax’ was not declared in this scope pc=pmax=1; ^ user.cpp:17:5: error: ‘umax’ was not declared in this scope umax=k; ^ user.cpp:18:9: error: ‘i’ was not declared in this scope for(i=k;i<=n;i++){cin>>x; ^ user.cpp:18:28: error: ‘x’ was not declared in this scope for(i=k;i<=n;i++){cin>>x; ^ user.cpp: At global scope: user.cpp:22:5: error: expected unqualified-id before ‘return’ return 0; ^ user.cpp:23:1: error: expected declaration before ‘}’ token } ^

Ceva nu functioneaza?