Borderou de evaluare (job #1746853)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 24 august 2016 01:06:44
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void make_sfx()’: user.cpp:36:29: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] if(i + (1 << lg - 1) < len) ^ user.cpp:37:50: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] l[i].c2 = p[lg - 1][i + (1 << lg - 1)]; ^ user.cpp: In function ‘int lcp(int, int)’: user.cpp:71:11: warning: unused variable ‘c’ [-Wunused-variable] c = a; ^ user.cpp: In function ‘int main()’: user.cpp:102: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:103: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:105:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&n); ^ user.cpp:107:27: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str + i * 64); ^ user.cpp:108:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&m); ^ user.cpp:112:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str + len); ^ 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:107: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); ^ In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:112:24: /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/cceMD5Xr.o: In function `main': user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1228ms6400kbOK10
2116ms2924kbOK10
3232ms3852kbOK10
4Depăşit8868kbTime limit exceeded.0
5Depăşit7788kbTime limit exceeded.0
6Depăşit7728kbTime limit exceeded.0
7Depăşit8024kbTime limit exceeded.0
8Depăşit13592kbTime limit exceeded.0
9Depăşit14248kbTime limit exceeded.0
10Depăşit16656kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?