Borderou de evaluare (job #1704273)

Utilizator akaprosAna Kapros akapros Data 18 mai 2016 14:36:29
Problema Go2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("go2.in", "r", stdin); ^ user.cpp:15:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ user.cpp:19:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[i] + 1); ^ user.cpp: In function ‘void write()’: user.cpp:111:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("go2.out", "w", stdout); ^ 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: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/ccRJrv9i.o: In function `read()': user.cpp:(.text+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
116ms13704kbOK510
216ms13712kbOK5
316ms13712kbOK510
416ms13708kbOK5
520ms13712kbOK530
616ms13708kbOK5
720ms13712kbOK5
820ms13708kbOK5
920ms13708kbOK5
1020ms13716kbOK5
11Depăşit13672kbTime limit exceeded.00
12Depăşit13664kbTime limit exceeded.00
13Depăşit13664kbTime limit exceeded.00
14Depăşit13664kbTime limit exceeded.00
15Depăşit13668kbTime limit exceeded.00
16Depăşit13668kbTime limit exceeded.00
17Depăşit13664kbTime limit exceeded.00
18Depăşit13668kbTime limit exceeded.00
19Depăşit13664kbTime limit exceeded.00
20Depăşit13664kbTime limit exceeded.00
Punctaj total50

Ceva nu functioneaza?