Borderou de evaluare (job #1471982)

Utilizator akaprosAna Kapros akapros Data 15 august 2015 20:03:35
Problema Propozitie2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int in_hash(int, char*, int)’: user.cpp:32:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < V[x].size(); ++ i) ^ user.cpp:33:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (strlen(a[V[x][i]]) == l && scmp(a[V[x][i]], s, l)) ^ user.cpp: In function ‘void read()’: user.cpp:40:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("propozitie2.in", "r", stdin); ^ user.cpp:41:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:43:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &m); ^ user.cpp:49:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[j]); ^ user.cpp: In function ‘void write()’: user.cpp:84:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("propozitie2.out", "w", stdout); ^ 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 ‘void read()’ at user.cpp:49:19: /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/ccwWgooa.o: In function `read()': user.cpp:(.text+0x425): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text+0x38e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
112ms8096kbOK1010
212ms8100kbOK1010
316ms8164kbOK1010
420ms8148kbOK1010
520ms8188kbOK1010
664ms8572kbOK100
7Depăşit8392kbTime limit exceeded.0
868ms8616kbOK100
9Depăşit8500kbTime limit exceeded.0
10Depăşit8600kbTime limit exceeded.00
Punctaj total50

Ceva nu functioneaza?