Pagini recente » Borderou de evaluare (job #1296285) | Borderou de evaluare (job #1504644) | Borderou de evaluare (job #1049596) | Borderou de evaluare (job #1750264) | Borderou de evaluare (job #2018434)
Borderou de evaluare (job #2018434)
Raport evaluator
Compilare:
user.cpp: In function ‘void pre()’:
user.cpp:36:10: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cti[c] = c - 'a';
^
user.cpp:38:10: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cti[c] = c - 'A';
^
user.cpp: In member function ‘void trie::insert(char*, int)’:
user.cpp:63:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
int nc = cti[*buf];
^
user.cpp: In member function ‘int trie::query(char*)’:
user.cpp:71:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
int nc = cti[*buf];
^
user.cpp: In function ‘bool icmp(int, int)’:
user.cpp:84:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (cti[*i] == cti[*j])
^
user.cpp:84:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (cti[*i] == cti[*j])
^
user.cpp:86:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return cti[*i] < cti[*j];
^
user.cpp:86:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return cti[*i] < cti[*j];
^
user.cpp: In function ‘int main()’:
user.cpp:99:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &_);
^
user.cpp:102:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:105:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", words[i]);
^
user.cpp:116:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %c%s", &tip, auxbuf);
^
user.cpp:126:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &amount);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 648ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 0 |