Borderou de evaluare (job #1669215)

Utilizator vlady1997Vlad Bucur vlady1997 Data 30 martie 2016 15:31:14
Problema Search Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("search.in","r",stdin); ^ 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("search.out","w",stdout); ^ user.cpp:10:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%c",&n,&m,&z); ^ user.cpp:11:36: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (i=1; i<=n; i++) gets(s[i]); ^ user.cpp:14:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c%c",&z,&q); sol=0; ^ 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:11:36: /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/cc46Cxsj.o: In function `main': user.cpp:(.text.startup+0x89): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbOK5
20ms308kbOK5
30ms408kbOK5
40ms480kbOK5
54ms548kbOK5
60ms432kbOK5
7Depăşit672kbTime limit exceeded.0
8Depăşit672kbTime limit exceeded.0
9Depăşit768kbTime limit exceeded.0
10Depăşit772kbTime limit exceeded.0
11Depăşit772kbTime limit exceeded.0
12Depăşit716kbTime limit exceeded.0
13Depăşit744kbTime limit exceeded.0
14Depăşit776kbTime limit exceeded.0
15Depăşit644kbTime limit exceeded.0
16Depăşit764kbTime limit exceeded.0
17Depăşit772kbTime limit exceeded.0
18Depăşit772kbTime limit exceeded.0
19Depăşit776kbTime limit exceeded.0
20Depăşit772kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?