Borderou de evaluare (job #1490736)

Utilizator salam1Florin Salam salam1 Data 24 septembrie 2015 02:50:36
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:48: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:49:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:51: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:114: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:115: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:48: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:51: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
30ms288kbOK5
40ms284kbOK5
50ms284kbOK5
68ms896kbOK5
716ms1220kbOK5
816ms1612kbOK5
916ms1788kbOK5
1012ms1412kbOK5
1116ms1216kbOK5
1212ms1572kbOK5
134ms760kbOK5
144ms848kbOK5
158ms1152kbOK5
168ms1216kbOK5
178ms1232kbOK5
188ms1244kbOK5
1912ms1700kbOK5
2060ms3168kbOK5
Punctaj total100

Ceva nu functioneaza?