Pagini recente » Borderou de evaluare (job #2811197) | Borderou de evaluare (job #2020024) | Borderou de evaluare (job #1887171) | Borderou de evaluare (job #2688905) | Borderou de evaluare (job #1418533)
Borderou de evaluare (job #1418533)
Raport evaluator
Compilare:
user.cpp: In function ‘int number(int, bool)’:
user.cpp:28:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < H[ind].size(); ++i)
^
user.cpp:29: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:31:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:90: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:91: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:93: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:95:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(S+1);
^
/tmp/ccTKL6GU.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 | 36ms | 8100kb | Incorect | 0 |
2 | 20ms | 8100kb | Incorect | 0 |
3 | 24ms | 8104kb | Incorect | 0 |
4 | 28ms | 8096kb | Incorect | 0 |
5 | 20ms | 8100kb | Incorect | 0 |
6 | 28ms | 8104kb | Incorect | 0 |
7 | 28ms | 8096kb | OK | 10 |
8 | 20ms | 8092kb | Incorect | 0 |
9 | 20ms | 8092kb | Incorect | 0 |
10 | 24ms | 8100kb | Incorect | 0 |
Punctaj total | 10 |