Borderou de evaluare (job #1402521)

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

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
10ms532kbIncorect0
20ms1328kbIncorect0
38ms5204kbIncorect0
464ms31196kbIncorect0
5Depăşit116412kbTime limit exceeded.0
6Depăşit113508kbTime limit exceeded.0
7Depăşit118132kbTime limit exceeded.0
8Depăşit119580kbTime limit exceeded.0
9Depăşit113904kbTime limit exceeded.0
10Depăşit119844kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?