Borderou de evaluare (job #1490735)

Utilizator salam1Florin Salam salam1 Data 24 septembrie 2015 02:47:16
Problema Aho-Corasick Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:50:28: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(A + 1, NMAX, stdin); ^ user.cpp:51:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:53:33: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(word + 1, NMAX, stdin); ^ user.cpp: In function ‘int main()’: user.cpp:116:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ahocorasick.in", "r", stdin); ^ user.cpp:117:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ahocorasick.out", "w", stdout); ^ 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* fgets(char*, int, FILE*)’, inlined from ‘void read()’ at user.cpp:50:28: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘void read()’ at user.cpp:53:33: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK5
20ms288kbOK5
30ms284kbOK5
40ms288kbOK5
50ms280kbOK5
68ms900kbOK5
716ms1224kbOK5
816ms1612kbOK5
916ms1784kbOK5
1012ms1420kbOK5
1116ms1220kbOK5
1212ms1576kbOK5
134ms756kbOK5
144ms844kbOK5
158ms1156kbOK5
168ms1220kbOK5
178ms1232kbOK5
188ms1240kbOK5
1912ms1696kbOK5
2056ms3164kbOK5
Punctaj total100

Ceva nu functioneaza?