Borderou de evaluare (job #1263469)

Utilizator george_stelianChichirim George george_stelian Data 14 noiembrie 2014 20:01:52
Problema Talharie 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:38:13: error: redeclaration of ‘int x’ int x=v[1]; ^ user.cpp:18:13: error: ‘int x’ previously declared here int x=0,nr=0; ^ user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("talharie.in", "r", stdin); ^ user.cpp:12:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("talharie.out", "w", stdout); ^ user.cpp:14:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%d",&t);t;t--) ^ user.cpp:16:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d %s",&n,&k,s); ^

Ceva nu functioneaza?