Borderou de evaluare (job #1755386)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 10 septembrie 2016 01:24:18
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void getSufPref()’: user.cpp:20:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 2; i <= strlen(Pattern + 1); i++) { ^ user.cpp: In function ‘int matchMinimum()’: user.cpp:31:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= strlen(Compressed[0] + 1); i++) { ^ user.cpp: In function ‘int matchMaximum()’: user.cpp:48:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= strlen(Compressed[1] + 1); i++) { ^ user.cpp: In function ‘int main()’: user.cpp:81:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= strlen(Words[0][1] + 1); i++) { ^ user.cpp:62:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.in", "r", stdin); ^ user.cpp:63:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.out", "w", stdout); ^ user.cpp:65:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &A); ^ user.cpp:67:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(Words[0][i] + 1); ^ user.cpp:72:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &B); ^ user.cpp:74:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(Words[1][i] + 1); ^ 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:67:26: /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:74:26: /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/ccIzf6tC.o: In function `main': user.cpp:(.text.startup+0x7f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK10
20ms292kbOK10
30ms296kbOK10
44ms312kbIncorect0
520ms348kbIncorect0
620ms340kbIncorect0
7112ms368kbIncorect0
8128ms396kbIncorect0
9128ms400kbOK10
10136ms396kbOK10
Punctaj total50

Ceva nu functioneaza?