Borderou de evaluare (job #1731050)

Utilizator DorelBarbuBarbu Dorel DorelBarbu Data 18 iulie 2016 11:18:59
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In constructor ‘trie::trie()’: user.cpp:19:38: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null] memset(next,NULL,sizeof(next)); ^ user.cpp: In function ‘int main()’: user.cpp:101:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(strlen(buff) < minLen) ^ user.cpp:107:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(buff); j++) ^ user.cpp:117:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < strlen(buff); j++) ^ user.cpp:121:10: warning: unused variable ‘test’ [-Wunused-variable] char test[MAXLG+1]; ^ user.cpp: In function ‘bool searchTrie(char*, trie*)’: user.cpp:66:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘bool searchTrie2(char*, trie*)’: user.cpp:77:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:86:32: 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:87:34: 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:95:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&Na); ^ user.cpp:99:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(buff); ^ user.cpp:111:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&Nb); ^ user.cpp:115:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(buff); ^ /tmp/ccs6jOF5.o: In function `main': user.cpp:(.text.startup+0x144): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms484kbIncorect0
20ms876kbIncorect0
34ms2596kbIncorect0
428ms14560kbIncorect0
5140ms70040kbIncorect0
6180ms87844kbIncorect0
7Depăşit111272kbTime limit exceeded.0
8Depăşit113648kbTime limit exceeded.0
9Depăşit112852kbTime limit exceeded.0
10Depăşit113256kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?