Borderou de evaluare (job #1848115)

Utilizator Teodora1Teodora Bucurie Teodora1 Data 15 ianuarie 2017 15:11:59
Problema Defrag 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:7: error: ‘s’ was not declared in this scope f>>n>>s; ^ user.cpp:15:5: error: ‘j’ was not declared in this scope for(j=i;j<=n;j++) ^ user.cpp:20:1: error: ‘sum’ was not declared in this scope sum=sum+a[j]; ^ user.cpp:24:4: error: ‘sum’ was not declared in this scope if(sum==s) ^ user.cpp:26:1: error: expected primary-expression before ‘}’ token } ^ user.cpp:26:1: error: expected ‘;’ before ‘}’ token

Ceva nu functioneaza?