Borderou de evaluare (job #1669198)

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

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:15: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/cclfSNkL.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
10ms348kbOK5
20ms564kbOK5
30ms1784kbIncorect0
44ms2916kbIncorect0
50ms584kbKilled by signal 6(SIGABRT).0
60ms888kbOK5
74ms808kbKilled by signal 11(SIGSEGV).0
84ms804kbKilled by signal 11(SIGSEGV).0
98ms900kbKilled by signal 11(SIGSEGV).0
104ms904kbKilled by signal 11(SIGSEGV).0
1112ms904kbKilled by signal 11(SIGSEGV).0
124ms856kbKilled by signal 11(SIGSEGV).0
134ms880kbKilled by signal 11(SIGSEGV).0
1412ms900kbKilled by signal 11(SIGSEGV).0
150ms784kbKilled by signal 11(SIGSEGV).0
160ms892kbKilled by signal 11(SIGSEGV).0
170ms1004kbKilled by signal 11(SIGSEGV).0
180ms876kbKilled by signal 11(SIGSEGV).0
194ms900kbKilled by signal 11(SIGSEGV).0
204ms904kbKilled by signal 11(SIGSEGV).0
Punctaj total15

Ceva nu functioneaza?