Borderou de evaluare (job #1480712)

Utilizator theprdvtheprdv theprdv Data 3 septembrie 2015 04:32:52
Problema Facebook Search Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void query(Trie*, char*)’: user.cpp:69:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (it->rel >= node->rel) { rel = it->rel; break; } ^ user.cpp:72:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] node = node->son[node->best]; ^ user.cpp:77:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (it->rel > rel) rel = it->rel, bitset = it->bitset; ^ user.cpp:78:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (it->rel == rel){ // compare the bits ^ user.cpp:9:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) (x ^ (x - 1) & x) ^ user.cpp:82:35: note: in expansion of macro ‘LSB’ if (!_bitset || (__bitset && LSB(_bitset) > LSB(__bitset))){ ^ user.cpp:9:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) (x ^ (x - 1) & x) ^ user.cpp:82:50: note: in expansion of macro ‘LSB’ if (!_bitset || (__bitset && LSB(_bitset) > LSB(__bitset))){ ^ user.cpp:9:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) (x ^ (x - 1) & x) ^ user.cpp:86:17: note: in expansion of macro ‘LSB’ _bitset -= LSB(_bitset), __bitset -= LSB(__bitset); ^ user.cpp:9:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define LSB(x) (x ^ (x - 1) & x) ^ user.cpp:86:43: note: in expansion of macro ‘LSB’ _bitset -= LSB(_bitset), __bitset -= LSB(__bitset); ^ user.cpp: In function ‘int main()’: user.cpp:125:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &tests); ^ user.cpp:131:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &M); ^ user.cpp:136:19: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] insert(T, line); ^ user.cpp:139:26: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(line, 50, stdin); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1492ms96656kbIncorect0
Punctaj total0

Ceva nu functioneaza?