Borderou de evaluare (job #598794)

Utilizator valentin.harsanValentin Harsan valentin.harsan Data 27 iunie 2011 10:03:14
Problema Risipa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘bool ver()’: user.cpp:15:16: warning: unused variable ‘ss’ [-Wunused-variable] int i,j; char ss[130]; ^ user.cpp: In function ‘int main()’: user.cpp:69:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d",&a,&b); a=a*3+2; b=b*3+1; ^ user.cpp:69:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp: In function ‘void sca()’: user.cpp:31:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ user.cpp: In function ‘int main()’: user.cpp:66:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("risipa.in","r",stdin); ^ user.cpp:67:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("risipa.out","w",stdout); ^ user.cpp:69:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); a=a*3+2; b=b*3+1; ^ /tmp/cc5bvL8V.o: In function `sca()': user.cpp:(.text+0x1ce): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbIncorect0
20ms280kbIncorect0
30ms292kbIncorect0
40ms304kbIncorect0
50ms332kbIncorect0
60ms332kbIncorect0
70ms348kbIncorect0
80ms360kbIncorect0
90ms348kbIncorect0
100ms368kbIncorect0
Punctaj total0

Ceva nu functioneaza?