Borderou de evaluare (job #1765557)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 26 septembrie 2016 20:29:17
Problema Evo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool solveString()’: user.cpp:49:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (s[j] == complementOf[s[j + i - 1]]) { ^ user.cpp: In function ‘int main()’: user.cpp:71:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("evo.in", "r", stdin); ^ user.cpp:72:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("evo.out", "w", stdout); ^ user.cpp:79:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:81:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(t[i] + 1); ^ user.cpp:84:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:86:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:81:23: /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/ccNG16TB.o: In function `main': user.cpp:(.text.startup+0x94): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x100): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms376kbOK55
20ms372kbOK55
30ms372kbOK55
48ms380kbOK55
58ms372kbOK55
624ms372kbOK55
724ms380kbOK55
844ms376kbOK55
932ms368kbOK55
1024ms364kbOK55
1152ms380kbOK55
12140ms380kbOK55
13276ms372kbOK520
14220ms380kbOK5
15224ms368kbOK5
16220ms364kbOK5
17308ms364kbOK55
18240ms380kbOK55
19244ms380kbOK55
20240ms376kbOK55
Punctaj total100

Ceva nu functioneaza?