Borderou de evaluare (job #2251351)

Utilizator ivan.tudorIvan Tudor ivan.tudor Data 1 octombrie 2018 14:37:05
Problema Balbaiala Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:44:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d ",&n,&q); ^ user.cpp:45:21: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(c+1,N,fin); ^ user.cpp:50:25: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(b+1,3*N,fin); ^ 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:5417, 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 user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:45:21: /usr/include/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 user.cpp:50:25: /usr/include/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 Punctaj/grupa
10ms3380kbOK1020
20ms5428kbOK10
316ms7480kbOK1020
420ms7476kbOK10
5256ms7528kbOK1030
6392ms7500kbOK10
7516ms3404kbOK10
8612ms3472kbOK100
9432ms5524kbOK10
10Depăşit7564kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?