Borderou de evaluare (job #1762652)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 23 septembrie 2016 22:46:57
Problema Criptare2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void Add_To_Hash(int, unsigned int)’: user.cpp:31:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<h[l].size();i++) ^ user.cpp: In function ‘bool Search(int, int)’: user.cpp:37:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<h[l].size();i++) ^ user.cpp:38:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(val==h[l][i])return true; ^ user.cpp: In function ‘int main()’: user.cpp:50:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[30]’ [-Wformat=] scanf("%s ",&Ch); ^ user.cpp:60:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[30]’ [-Wformat=] scanf("%s ",&Ch); ^ user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("criptare2.in","r",stdin); ^ user.cpp:44:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("criptare2.out","w",stdout); ^ user.cpp:46:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&N); ^ user.cpp:50:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s ",&Ch); ^ user.cpp:54:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&M); ^ user.cpp:60:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s ",&Ch); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbOK10
20ms248kbOK10
30ms248kbOK10
4152ms352kbOK10
5Depăşit460kbTime limit exceeded.0
6Depăşit456kbTime limit exceeded.0
7Depăşit456kbTime limit exceeded.0
8Depăşit456kbTime limit exceeded.0
9Depăşit456kbTime limit exceeded.0
10Depăşit456kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?