Borderou de evaluare (job #2415889)

Utilizator ivan.tudorIvan Tudor ivan.tudor Data 26 aprilie 2019 16:30:06
Problema Sablon Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void solve(int)': main.cpp:10:19: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(v+1,N,fin); ^ main.cpp: In function 'int main()': main.cpp:38:21: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(s+1,N,fin); ^ main.cpp:40:25: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d ",&n); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/6/cstdio:42, from /usr/include/c++/6/ext/string_conversions.h:43, from /usr/include/c++/6/bits/basic_string.h:5420, from /usr/include/c++/6/string:52, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: In function 'char* fgets(char*, int, FILE*)', inlined from 'void solve(int)' at main.cpp:10:19: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function 'char* fgets(char*, int, FILE*)', inlined from 'int main()' at main.cpp:38:21: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
163ms2621kbOK4
292ms2883kbOK4
365ms2228kbOK4
481ms2752kbOK4
52ms131kbOK4
63ms131kbOK4
73ms131kbOK4
83ms131kbOK4
94ms393kbOK4
104ms393kbOK4
114ms393kbOK4
124ms393kbOK4
134ms393kbOK4
144ms393kbOK4
154ms393kbOK4
164ms393kbOK4
17252ms4587kbOK4
18266ms4456kbOK4
19272ms4587kbOK4
20304ms4587kbOK4
21272ms4718kbOK4
22271ms4587kbOK4
23293ms4718kbOK4
24262ms4456kbOK4
25288ms4718kbOK4
Punctaj total100

Ceva nu functioneaza?