Borderou de evaluare (job #1217435)

Utilizator ZenusTudor Costin Razvan Zenus Data 7 august 2014 13:17:23
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:32:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlen(A[i]+1)<MIN) ^ user.cpp:112:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0;i<T.size();++i) ^ user.cpp:23:28: 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:24:30: 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:26:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&N); ^ user.cpp:30:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(A[i]+1); ^ user.cpp:39:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&M); ^ user.cpp:42:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(B[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:30:17: /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:42:13: /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/ccovZu4G.o: In function `main': user.cpp:(.text.startup+0x8c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
128ms26920kbIncorect0
232ms26928kbIncorect0
336ms26932kbIncorect0
472ms26944kbIncorect0
5Depăşit26968kbTime limit exceeded.0
6Depăşit26972kbTime limit exceeded.0
7Depăşit5920kbTime limit exceeded.0
8Depăşit5932kbTime limit exceeded.0
9Depăşit5940kbTime limit exceeded.0
10Depăşit5932kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?