Borderou de evaluare (job #1746237)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 22 august 2016 22:16:48
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void make_sfx()’: user.cpp:44:25: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if(i + (1<<l-1) < n) ^ user.cpp:45:50: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] aux[i].p2 = sfx[l - 1][i + (1<<l-1)]; ^ user.cpp: In function ‘int main()’: user.cpp:77:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.in", "r", stdin); ^ user.cpp:78:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("seti.out", "w", stdout); ^ user.cpp:80:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&n); ^ user.cpp:82:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str + i * 64); ^ user.cpp:86:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&m); ^ user.cpp:88:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(pat); ^ 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:82: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/ccTf0raB.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0xd2): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1216ms6136kbOK10
252ms1872kbOK10
3132ms2780kbOK10
4168ms2780kbOK10
5288ms5320kbOK10
6Depăşit7696kbTime limit exceeded.0
7Depăşit8080kbTime limit exceeded.0
8Depăşit7740kbTime limit exceeded.0
9Depăşit7740kbTime limit exceeded.0
10Depăşit8772kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?