Borderou de evaluare (job #1795713)

Utilizator ASTELOTudor Enescu ASTELO Data 2 noiembrie 2016 20:07:01
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:10: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:11: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:12: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:15: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:15: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/cciu0gJ0.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
10ms1288kbOK5
20ms1284kbOK5
34ms1292kbOK5
44ms1280kbOK5
54ms1288kbOK5
64ms1284kbOK5
7140ms1284kbIncorect0
8128ms1284kbIncorect0
9132ms1292kbOK5
10220ms1288kbOK5
11Depăşit1260kbTime limit exceeded.0
12Depăşit1276kbTime limit exceeded.0
13Depăşit1264kbTime limit exceeded.0
14Depăşit1260kbTime limit exceeded.0
15Depăşit1260kbTime limit exceeded.0
16Depăşit1272kbTime limit exceeded.0
17Depăşit1312kbTime limit exceeded.0
18Depăşit1296kbTime limit exceeded.0
19Depăşit1308kbTime limit exceeded.0
20Depăşit1304kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?