Borderou de evaluare (job #1276012)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 25 noiembrie 2014 21:22:12
Problema Rezervatie Naturala Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d",&l,&c); ^ user.cpp:40:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:53:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1;i<strlen(s);i++) ^ user.cpp:39:9: warning: unused variable ‘j’ [-Wunused-variable] int j,i; ^ user.cpp:40:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&l,&c); ^ user.cpp:42:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:123:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:126:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^ /tmp/ccx2Ydl3.o: In function `main': user.cpp:(.text.startup+0x43): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbIncorect0
20ms268kbIncorect0
30ms276kbIncorect0
40ms284kbIncorect0
50ms420kbIncorect0
64ms504kbIncorect0
720ms584kbIncorect0
88ms568kbIncorect0
90ms328kbIncorect0
1028ms596kbIncorect0
Punctaj total0

Ceva nu functioneaza?