Pagini recente » Borderou de evaluare (job #628647) | Borderou de evaluare (job #77892) | Borderou de evaluare (job #67334) | Borderou de evaluare (job #1313523) | Borderou de evaluare (job #2419889)
Borderou de evaluare (job #2419889)
Raport evaluator
Compilare:
main.cpp: In function 'void solve(long long int, int)':
main.cpp:22:94: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", (1LL * _sum * (pwr[t % (MOD - 1)] + 1) * _inv - arr[_n - p + 1] + MOD) % MOD); }
^
main.cpp:24:85: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", (1LL * _sum * (pwr[t % (MOD - 1)] - 1) * _inv + arr[p] + MOD) % MOD); } }
^
main.cpp: In function 'int main()':
main.cpp:27:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("complet.in", "r", stdin);
^
main.cpp:28:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("complet.out", "w", stdout);
^
main.cpp:29:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n, q; scanf("%d %d", &n, &q);
^
main.cpp:31:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &arr[i]); _sum = (_sum + arr[i]) % MOD; }
^
main.cpp:38:85: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %lld %lld %lld %d %d %d", &x, &y, &z, &t1, &t2, &t3, &p1, &p2, &p3);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 262kb | OK | 10 |
2 | 8ms | 393kb | OK | 10 |
3 | 16ms | 393kb | OK | 10 |
4 | 19ms | 393kb | OK | 10 |
5 | 68ms | 1048kb | OK | 10 |
6 | 388ms | 6291kb | OK | 10 |
7 | 441ms | 6291kb | OK | 10 |
8 | 449ms | 6422kb | OK | 10 |
9 | 417ms | 6422kb | OK | 10 |
10 | 426ms | 6422kb | OK | 10 |
Punctaj total | 100 |