Borderou de evaluare (job #1751425)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 1 septembrie 2016 13:43:51
Problema Poveste Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:39:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("poveste.in", "r", stdin); ^ user.cpp:40:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("poveste.out", "w", stdout); ^ user.cpp:53:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:65:32: 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:68:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[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 ‘int main()’ at user.cpp:68:27: /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/ccktLU6z.o: In function `main': user.cpp:(.text.startup+0x171): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
116ms732kbOK1020
216ms692kbOK10
3Depăşit1968kbTime limit exceeded.00
4Depăşit1736kbTime limit exceeded.0
5Depăşit2984kbTime limit exceeded.00
6Depăşit2980kbTime limit exceeded.0
7Depăşit3472kbTime limit exceeded.00
8Depăşit3988kbTime limit exceeded.00
9Depăşit5472kbTime limit exceeded.0
10Depăşit5468kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?