Borderou de evaluare (job #1402514)

Utilizator Al3ks1002Alex Cociorva Al3ks1002 Data 26 martie 2015 17:07:46
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void addA(int, int)’: user.cpp:58:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!t->f[a]) ^ user.cpp:59:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] t->f[a] = new trie; ^ user.cpp:61:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] t = t->f[a]; ^ user.cpp: In function ‘void addB(int)’: user.cpp:78:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!t->f[a]) ^ user.cpp:79:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] t->f[a] = new trie; ^ user.cpp:81:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] t = t->f[a]; ^ user.cpp: In function ‘int main()’: user.cpp:99:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.in", "r", stdin); ^ user.cpp:100:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.out", "w", stdout); ^ user.cpp:102:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:105:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s); ^ user.cpp:112:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:115:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms528kbOK10
20ms1332kbOK10
312ms5200kbOK10
480ms31188kbOK10
5Depăşit117600kbTime limit exceeded.0
6Depăşit114304kbTime limit exceeded.0
7Depăşit119452kbTime limit exceeded.0
8Depăşit120508kbTime limit exceeded.0
9Depăşit117468kbTime limit exceeded.0
10Depăşit118396kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?