Borderou de evaluare (job #1853257)

Utilizator mariakKapros Maria mariak Data 21 ianuarie 2017 15:39:50
Problema Subsecvente2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:17:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &N); ^ user.cpp:19:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘void read()’ at user.cpp:19:25: /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/cceKPxe3.o: In function `read()': user.cpp:(.text+0x3d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms472kbOK5
20ms468kbOK5
30ms492kbOK5
40ms480kbOK5
50ms508kbOK5
60ms500kbOK5
732ms1116kbIncorect0
836ms1188kbIncorect0
928ms1272kbIncorect0
1040ms1336kbIncorect0
1144ms1396kbIncorect0
1268ms1444kbIncorect0
13Depăşit2648kbTime limit exceeded.0
14220ms2276kbIncorect0
15268ms2488kbIncorect0
16Depăşit3064kbTime limit exceeded.0
17Depăşit2064kbTime limit exceeded.0
18Depăşit2048kbTime limit exceeded.0
19Depăşit2052kbTime limit exceeded.0
20Depăşit2024kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?