Borderou de evaluare (job #1116857)

Utilizator BaTDucKMocanu George BaTDucK Data 22 februarie 2014 21:06:21
Problema Lacusta 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:7:17: error: ‘n’ was not declared in this scope scanf("%d",&n); ^ user.cpp:8:9: error: ‘i’ was not declared in this scope for(i=1;i<=n;++i) scanf("%d",&v[i]); ^ user.cpp:8:35: error: ‘v’ was not declared in this scope for(i=1;i<=n;++i) scanf("%d",&v[i]); ^ user.cpp:9:8: error: ‘v’ was not declared in this scope if(v[2]<v[1]) sol[1]=1; ^ user.cpp:9:19: error: ‘sol’ was not declared in this scope if(v[2]<v[1]) sol[1]=1; ^ user.cpp:10:8: error: ‘v’ was not declared in this scope if(v[n-1]<v[n]) sol[n]=1; ^ user.cpp:10:21: error: ‘sol’ was not declared in this scope if(v[n-1]<v[n]) sol[n]=1; ^ user.cpp:11:9: error: ‘i’ was not declared in this scope for(i=2;i<n;++i){ ^ user.cpp:12:12: error: ‘v’ was not declared in this scope if(v[i-1]>v[i+1]){ ^ user.cpp:13:13: error: ‘a’ was not declared in this scope a=i-1;b=i+1;sol[i]=1; ^ user.cpp:13:19: error: ‘b’ was not declared in this scope a=i-1;b=i+1;sol[i]=1; ^ user.cpp:13:25: error: ‘sol’ was not declared in this scope a=i-1;b=i+1;sol[i]=1; ^ user.cpp:15:23: error: expected primary-expression before ‘)’ token while() ^ user.cpp:16:13: error: expected primary-expression before ‘}’ token } ^ user.cpp:16:13: error: expected ‘;’ before ‘}’ token user.cpp:19:13: error: ‘a’ was not declared in this scope a=i-1;b=i+1;sol[i]=1; ^ user.cpp:19:19: error: ‘b’ was not declared in this scope a=i-1;b=i+1;sol[i]=1; ^

Ceva nu functioneaza?