Borderou de evaluare (job #1795729)

Utilizator ASTELOTudor Enescu ASTELO Data 2 noiembrie 2016 20:15:26
Problema Subsecvente2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("subsecvente2.in","r",stdin); ^ user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("subsecvente2.out","w",stdout); ^ user.cpp:11:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c",&n,&c); ^ user.cpp:14:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[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:14:15: /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/ccroNWVh.o: In function `main': user.cpp:(.text.startup+0x8d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms320kbOK5
20ms320kbOK5
30ms324kbOK5
40ms320kbOK5
50ms332kbOK5
60ms320kbOK5
7Depăşit308kbTime limit exceeded.0
8Depăşit292kbTime limit exceeded.0
9112ms328kbOK5
10188ms320kbOK5
11Depăşit292kbTime limit exceeded.0
12Depăşit296kbTime limit exceeded.0
13Depăşit300kbTime limit exceeded.0
14Depăşit292kbTime limit exceeded.0
15Depăşit300kbTime limit exceeded.0
16Depăşit304kbTime limit exceeded.0
17Depăşit352kbTime limit exceeded.0
18Depăşit332kbTime limit exceeded.0
19Depăşit340kbTime limit exceeded.0
20Depăşit336kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?