Borderou de evaluare (job #1673354)

Utilizator SolcanMihaiSolcan Mihai Andrei SolcanMihai Data 3 aprilie 2016 18:05:57
Problema Sablon Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 4

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:17:30: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(x + 1, 1505, stdin); ^ user.cpp:22:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &h); ^ user.cpp: In function ‘void citireLinie()’: user.cpp:27:30: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(y + 1, 1505, stdin); ^ user.cpp: In function ‘int main()’: user.cpp:164:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sablon.in", "r", stdin); ^ user.cpp:165:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sablon.out", "w", stdout); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘void citire()’ at user.cpp:17:30: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘void citireLinie()’ at user.cpp:27:30: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
112msDepăşitMemory limit exceeded.0
216msDepăşitMemory limit exceeded.0
312msDepăşitMemory limit exceeded.0
420msDepăşitMemory limit exceeded.0
50ms568kbOK4
60ms584kbIncorect0
70ms572kbIncorect0
80ms592kbIncorect0
90ms1060kbIncorect0
100ms1232kbIncorect0
110ms1236kbIncorect0
120ms1068kbIncorect0
130ms1244kbIncorect0
140ms1192kbIncorect0
150ms1068kbIncorect0
160ms1068kbIncorect0
1744msDepăşitMemory limit exceeded.0
1844msDepăşitMemory limit exceeded.0
1940msDepăşitMemory limit exceeded.0
2040msDepăşitMemory limit exceeded.0
2144msDepăşitMemory limit exceeded.0
2236msDepăşitMemory limit exceeded.0
2348msDepăşitMemory limit exceeded.0
2436msDepăşitMemory limit exceeded.0
2536msDepăşitMemory limit exceeded.0
Punctaj total4

Ceva nu functioneaza?