Borderou de evaluare (job #1724728)

Utilizator bciobanuBogdan Ciobanu bciobanu Data 4 iulie 2016 01:49:53
Problema LCDR Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:69:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lcdr.in", "r", stdin); ^ user.cpp:70:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lcdr.out", "w", stdout); ^ user.cpp:71:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int n, m, q; scanf("%d%d%d\n", &n, &m, &q); ^ user.cpp:73:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(foo[i]); ^ 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* gets(char*)’, inlined from ‘int main()’ at user.cpp:73:21: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccbcDKAf.o: In function `main': user.cpp:(.text.startup+0x86): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms388kbOK5
20ms388kbOK5
316ms516kbOK5
416ms512kbOK5
5Depăşit1496kbTime limit exceeded.0
6Depăşit1492kbTime limit exceeded.0
768ms3712kbOK5
868ms3708kbOK5
9Depăşit1652kbTime limit exceeded.0
10Depăşit1656kbTime limit exceeded.0
11Depăşit3148kbTime limit exceeded.0
12Depăşit3148kbTime limit exceeded.0
13Depăşit4804kbTime limit exceeded.0
14Depăşit4804kbTime limit exceeded.0
15Depăşit9776kbTime limit exceeded.0
16Depăşit9776kbTime limit exceeded.0
17Depăşit9776kbTime limit exceeded.0
18Depăşit9780kbTime limit exceeded.0
19Depăşit9776kbTime limit exceeded.0
20Depăşit9780kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?