Borderou de evaluare (job #2415880)

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

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:36: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:38: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:36: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
291ms2883kbOK4
347ms2359kbOK4
480ms2752kbOK4
52ms131kbOK4
63ms131kbOK4
73ms131kbIncorect0
83ms262kbOK4
94ms393kbOK4
104ms393kbOK4
114ms393kbOK4
124ms393kbOK4
134ms393kbOK4
144ms393kbOK4
154ms393kbOK4
164ms393kbOK4
17263ms4587kbOK4
18280ms4456kbOK4
19288ms4587kbOK4
20307ms4587kbOK4
21277ms4587kbOK4
22273ms4718kbOK4
23259ms4587kbOK4
24301ms4587kbOK4
25314ms4587kbOK4
Punctaj total96

Ceva nu functioneaza?