Borderou de evaluare (job #2083017)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 6 decembrie 2017 23:09:53
Problema Autobuze Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In constructor ‘Hash::Hash()’: user.cpp:13:43: warning: left shift count >= width of type [enabled by default] memset(lista, 0x00, MOD*sizeof(int)); ^ user.cpp: In member function ‘void Hash::insert(int, int)’: user.cpp:19:35: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] next[k]=lista[(1LL*element+1LL*MOD*MOD)%MOD]; ^ user.cpp:20:27: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] lista[(1LL*element+1LL*MOD*MOD)%MOD]=k; ^ user.cpp: In member function ‘int Hash::find(int)’: user.cpp:23:33: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] int p=lista[(1LL*element+1LL*MOD*MOD)%MOD]; ^ user.cpp: In function ‘int main()’: user.cpp:51:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &n); ^ user.cpp:53:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK10
20ms440kbOK10
3304ms460kbOK10
4Depăşit488kbTime limit exceeded.0
5Depăşit560kbTime limit exceeded.0
6Depăşit728kbTime limit exceeded.0
7Depăşit1104kbTime limit exceeded.0
8Depăşit1384kbTime limit exceeded.0
9Depăşit1308kbTime limit exceeded.0
10Depăşit1380kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?