Borderou de evaluare (job #702286)

Utilizator ursu-valiJerdea Florin ursu-vali Data 1 martie 2012 20:42:37
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d",&x,&y); ^ user.cpp:24:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:31:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&x,&y); ^ user.cpp:31:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:58:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",ok); ^ user.cpp:14:27: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(infile,"r",stdin); ^ user.cpp:15:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(outfile,"w",stdout); ^ user.cpp:24:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); ^ user.cpp:31:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^ user.cpp:29:2: warning: ‘k’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(i=1;i<=k;i++) //citirea povestilor ciudate ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbIncorect0
20ms236kbIncorect0
30ms240kbIncorect0
40ms244kbIncorect0
50ms240kbIncorect0
60ms240kbIncorect0
70ms236kbIncorect0
80ms244kbIncorect0
90ms240kbIncorect0
100ms236kbIncorect0
Punctaj total0

Ceva nu functioneaza?