Borderou de evaluare (job #2398816)

Utilizator ivan.tudorIvan Tudor ivan.tudor Data 6 aprilie 2019 10:55:21
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:17:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d ",&n,&l); ^ main.cpp:19:21: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(c,L,fin); ^ main.cpp:25:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&cost[i]); ^ 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 'int main()' at main.cpp:19: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
12ms131kbCool!10
22ms131kbCool!10
37ms262kbKilled by Signal 110
47ms262kbKilled by Signal 110
57ms262kbKilled by Signal 110
67ms262kbKilled by Signal 110
77ms262kbKilled by Signal 110
87ms262kbKilled by Signal 110
96ms262kbKilled by Signal 110
107ms262kbKilled by Signal 110
Punctaj total20

Ceva nu functioneaza?