Borderou de evaluare (job #1418574)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 13 aprilie 2015 14:44:22
Problema Substr Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int number(int, bool)’: user.cpp:27:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < H[ind].size(); ++i) ^ user.cpp:28:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (H[ind][i].code == xhashing) if (mod) return H[ind][i].nr; ^ user.cpp: In function ‘int main()’: user.cpp:91:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("substr.in","r",stdin); ^ user.cpp:92:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("substr.out","w",stdout); ^ user.cpp:94:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &k); ^ user.cpp:96:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(S+1); ^ /tmp/cclyUeUv.o: In function `main': user.cpp:(.text.startup+0x6f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit9672kbTime limit exceeded.0
2Depăşit10452kbTime limit exceeded.0
3Depăşit10320kbTime limit exceeded.0
468ms8684kbOK10
5Depăşit10188kbTime limit exceeded.0
6Depăşit10192kbTime limit exceeded.0
728ms8096kbOK10
844ms8108kbOK10
944ms8192kbOK10
10Depăşit9724kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?