Borderou de evaluare (job #1763990)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 24 septembrie 2016 21:09:43
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void Add_To_Hash(int)’: user.cpp:31:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Hash[V%MOD].size();i++) ^ user.cpp:32:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(V==Hash[V%MOD][i].first) ^ user.cpp: In function ‘int Search_In_Hash(int)’: user.cpp:41:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Hash[V%MOD].size();i++) ^ user.cpp:42:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(V==Hash[V%MOD][i].first)return Hash[V%MOD][i].second; ^ user.cpp: In function ‘int main()’: user.cpp:58:17: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[65]’ [-Wformat=] scanf("%s ",&W); ^ user.cpp:69:17: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[65]’ [-Wformat=] scanf("%s ",&W); ^ user.cpp:52:30: 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:53:32: 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:55:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&N); ^ user.cpp:58:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s ",&W); ^ user.cpp:65:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&M); ^ user.cpp:69:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s ",&W); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1740kbIncorect0
28ms1512kbKilled by signal 11(SIGSEGV).0
34ms1656kbOK10
420ms2260kbOK10
520ms2664kbKilled by signal 11(SIGSEGV).0
628ms3020kbKilled by signal 11(SIGSEGV).0
740ms3348kbKilled by signal 11(SIGSEGV).0
816ms2304kbKilled by signal 11(SIGSEGV).0
916ms2304kbKilled by signal 11(SIGSEGV).0
1020ms2316kbKilled by signal 11(SIGSEGV).0
Punctaj total20

Ceva nu functioneaza?