Pagini recente » Borderou de evaluare (job #509945) | Borderou de evaluare (job #2257605) | Borderou de evaluare (job #933009) | Borderou de evaluare (job #2606684) | Borderou de evaluare (job #1418578)
Borderou de evaluare (job #1418578)
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/ccJefmq0.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 |
1 | 40ms | 808kb | Incorect | 0 |
2 | 56ms | 948kb | OK | 10 |
3 | 60ms | 932kb | OK | 10 |
4 | 12ms | 612kb | OK | 10 |
5 | 52ms | 868kb | OK | 10 |
6 | 52ms | 916kb | OK | 10 |
7 | 0ms | 404kb | OK | 10 |
8 | 0ms | 420kb | OK | 10 |
9 | 0ms | 484kb | OK | 10 |
10 | 44ms | 812kb | OK | 10 |
Punctaj total | 90 |