Borderou de evaluare (job #1469010)

Utilizator vladrochianVlad Rochian vladrochian Data 7 august 2015 15:04:09
Problema Logs Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logs.in", "r", stdin); ^ user.cpp:15:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logs.out", "w", stdout); ^ user.cpp:16:27: 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:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str[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:19:17: /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/cciZmRLt.o: In function `main': user.cpp:(.text.startup+0x84): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
136ms432kbOK10
2Depăşit1244kbTime limit exceeded.0
3Depăşit1768kbTime limit exceeded.0
4Depăşit7608kbTime limit exceeded.0
5Depăşit7616kbTime limit exceeded.0
6Depăşit14816kbTime limit exceeded.0
7Depăşit19368kbTime limit exceeded.0
8Depăşit22304kbTime limit exceeded.0
9Depăşit22312kbTime limit exceeded.0
10Depăşit22308kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?