Borderou de evaluare (job #1534630)

Utilizator RazvanR104Razvan-Andrei Ciocoiu RazvanR104 Data 23 noiembrie 2015 20:53:48
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:82: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:83: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:88:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &N, &M, &NQ); ^ user.cpp:90:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(L[i] + 1); ^ user.cpp:104:67: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &Q[i].l, &Q[i].c, &Q[i].l1, &Q[i].l2); ^ 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:90:23: /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/ccNzxAvs.o: In function `main': user.cpp:(.text.startup+0x8f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms396kbOK5
20ms388kbOK5
34ms520kbOK5
44ms516kbOK5
5512ms1532kbOK5
6520ms1528kbOK5
7Depăşit5344kbTime limit exceeded.0
8Depăşit5336kbTime limit exceeded.0
9Depăşit1732kbTime limit exceeded.0
10Depăşit1740kbTime limit exceeded.0
11Depăşit3844kbTime limit exceeded.0
12Depăşit3844kbTime limit exceeded.0
13Depăşit6184kbTime limit exceeded.0
14Depăşit6188kbTime limit exceeded.0
15Depăşit13212kbTime limit exceeded.0
16Depăşit13208kbTime limit exceeded.0
17Depăşit13212kbTime limit exceeded.0
18Depăşit13212kbTime limit exceeded.0
19Depăşit13216kbTime limit exceeded.0
20Depăşit13208kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?