Pagini recente » Borderou de evaluare (job #1410774) | Borderou de evaluare (job #2644215) | Borderou de evaluare (job #3178360) | Borderou de evaluare (job #1480712)
Borderou de evaluare (job #1480712)
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 |
1 | 492ms | 96656kb | Incorect | 0 |
Punctaj total | 0 |