Borderou de evaluare (job #1767425)

Utilizator sergiuspiridonsergiu spiridon sergiuspiridon Data 28 septembrie 2016 23:24:49
Problema Perechi 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:3: error: expected ‘,’ or ‘;’ before ‘int’ int n,i,j,p=0,x,y,prod; ^ user.cpp:10:7: error: ‘n’ was not declared in this scope in>>n; ^ user.cpp:11:5: error: ‘i’ was not declared in this scope for(i=1;i<=n;i++) ^ user.cpp:12:6: error: ‘j’ was not declared in this scope {for(j=i;j<=n;j++) ^ user.cpp:14:1: error: ‘x’ was not declared in this scope x=i;y=j; ^ user.cpp:14:5: error: ‘y’ was not declared in this scope x=i;y=j; ^ user.cpp:15:1: error: ‘prod’ was not declared in this scope prod=x*y; ^ user.cpp:24:2: error: ‘p’ was not declared in this scope p=p+1; ^ user.cpp:28:8: error: ‘p’ was not declared in this scope out<<p; ^ user.cpp:34:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?