Borderou de evaluare (job #1594798)

Utilizator SilviuIIon Silviu SilviuI Data 9 februarie 2016 19:06:14
Problema Rezervatie Naturala Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:69:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;(int)i<sol.size();i++) printf("%d ",sol[i]); ^ user.cpp:34:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rezervatie.in","r",stdin); ^ user.cpp:35:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rezervatie.out","w",stdout); ^ user.cpp:37:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ",&n,&m); ^ user.cpp:38:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ user.cpp:40:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&l); ^ user.cpp:43:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); v[i].x=x; v[i].y=y; ^ /tmp/cc37VMs3.o: In function `main': user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbOK10
20ms300kbOK10
30ms304kbOK10
40ms300kbOK10
50ms624kbOK10
64msDepăşitMemory limit exceeded.0
712msDepăşitMemory limit exceeded.0
824msDepăşitMemory limit exceeded.0
90ms320kbOK10
100msDepăşitMemory limit exceeded.0
Punctaj total60

Ceva nu functioneaza?