Borderou de evaluare (job #2178397)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 19 martie 2018 14:13:40
Problema Karma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("karma.in", "r", stdin); ^ user.cpp:15:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("karma.out", "w", stdout); ^ user.cpp:18:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &n, &m); ^ user.cpp:22:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets (str + 1, 32, stdin); ^ In file included from /usr/include/stdio.h:936:0, from /usr/include/c++/5/cstdio:42, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:22:35: /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
10ms3280kbOK!0
20ms3276kbOK!0
30ms3376kbOK!10
44ms3612kbOK!10
584ms9640kbOK!10
6184ms9752kbOK!10
7184ms9668kbOK!10
8184ms9712kbOK!10
9184ms9720kbOK!10
10184ms9748kbOK!10
110ms3296kbOK!10
120ms3400kbOK!10
Punctaj total100

Ceva nu functioneaza?