Borderou de evaluare (job #2204513)

Utilizator varena2005Tudor Andrei varena2005 Data 16 mai 2018 09:00:55
Problema Xspe 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:8:5: error: expected ‘;’ before ‘freopen’ freopen("xspe2.out.c","w",stdout) ^~~~~~~ user.cpp:10:10: error: ‘n’ was not declared in this scope cin>>n; ^ user.cpp:11:9: error: ‘i’ was not declared in this scope for(i=1; i<=n; i++) ^ user.cpp:13:14: error: ‘v’ was not declared in this scope cin>>v[i]; ^ user.cpp:15:5: error: ‘st’ was not declared in this scope st[1]=v[n]; ^~ user.cpp:15:11: error: ‘v’ was not declared in this scope st[1]=v[n]; ^ user.cpp:16:5: error: ‘rez’ was not declared in this scope rez[n]=v[n]; ^~~ user.cpp:17:9: error: ‘i’ was not declared in this scope for(i=n-1; i>=1; i--) ^ user.cpp:19:24: error: ‘k’ was not declared in this scope while(v[i]<=st[k] && k>=1) ^ user.cpp:23:9: error: ‘k’ was not declared in this scope k++; ^ user.cpp:34:9: error: ‘i’ was not declared in this scope for(i=1; i<=n; i++) ^ user.cpp:9:49: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] int st[100001],v[100001],rez[100001],n,i,k=0; ^

Ceva nu functioneaza?