Borderou de evaluare (job #1764993)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 26 septembrie 2016 10:19:05
Problema Muzica Status done
Runda cerculdeinfo-lectia1-hashuri.rabinkarp Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void Add_To_Hash(unsigned int)’: user.cpp:15:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<h[x%MOD].size();i++) ^ user.cpp: In function ‘bool Search_In_Hash(unsigned int)’: user.cpp:22:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<h[val%MOD].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:36:45: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%u%u%d%d%d",&R2,&R1,&M1,&M2,&mod); ^ user.cpp:36:45: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:36:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:36:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:36:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:32:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzica.in","r",stdin); ^ user.cpp:33:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzica.out","w",stdout); ^ user.cpp:35:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&M,&N); ^ user.cpp:36:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u%u%d%d%d",&R2,&R1,&M1,&M2,&mod); ^ user.cpp:39:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u",&aux); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1736kbOK10
20ms1748kbOK10
340ms1812kbOK10
496ms1856kbOK10
5192ms1888kbOK10
6428ms1884kbOK10
7660ms1884kbOK10
8812ms1888kbOK10
9816ms1888kbOK10
100ms1740kbOK10
Punctaj total100

Ceva nu functioneaza?