Borderou de evaluare (job #1468404)

Utilizator theprdvtheprdv theprdv Data 5 august 2015 23:18:39
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:48:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.in", "r", stdin); ^ user.cpp:49:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.out", "w", stdout); ^ user.cpp:51:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &N); ^ user.cpp:52:46: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0; i < N; ++i) gets(A + 64 * i); ^ user.cpp:74:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &M); ^ user.cpp:76:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(A2); ^ In file included from /usr/include/stdio.h:934:0, from user.cpp:3: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:52:46: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccaUFzaE.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x3c8): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
152ms3656kbOK10
212ms2376kbOK10
348ms2996kbOK10
476ms2992kbOK10
596ms4144kbOK10
6144ms5296kbOK10
7196ms6444kbOK10
8244ms6548kbOK10
9244ms6544kbOK10
10196ms5340kbOK10
Punctaj total100

Ceva nu functioneaza?