Pagini recente » Borderou de evaluare (job #126015) | Borderou de evaluare (job #1504943) | Borderou de evaluare (job #2603594) | Borderou de evaluare (job #2324918) | Borderou de evaluare (job #1311747)
Borderou de evaluare (job #1311747)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:29:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sirag.in", "r", stdin);
^
user.cpp:30:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sirag.out", "w", stdout);
^
user.cpp:34:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &p);
^
user.cpp:36:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
user.cpp:57:57: warning: ‘lastMid’ may be used uninitialized in this function [-Wmaybe-uninitialized]
res = lastMid * p + lastPos + sp[lastPos] - lastMid * (p - lastPos + 1) - 1;
^
user.cpp:57:62: warning: ‘lastPos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
res = lastMid * p + lastPos + sp[lastPos] - lastMid * (p - lastPos + 1) - 1;
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 280kb | OK | 10 | 20 |
| 2 | 0ms | 280kb | OK | 10 |
| 3 | 0ms | 292kb | OK | 10 | 10 |
| 4 | 0ms | 384kb | OK | 10 | 10 |
| 5 | 4ms | 392kb | OK | 10 | 10 |
| 6 | 28ms | 1440kb | OK | 10 | 10 |
| 7 | 32ms | 1440kb | OK | 10 | 10 |
| 8 | 32ms | 1432kb | OK | 10 | 10 |
| 9 | 8ms | 500kb | OK | 10 | 10 |
| 10 | 40ms | 1436kb | OK | 10 | 10 |
| Punctaj total | 100 |