Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
2 August 2023, 20:24 |
c++20 |
100.0 |
main.cpp: In function ‘int main()’:
main.cpp:53:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
53 | freopen("ksecv.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:54:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
54 | freopen("ksecv.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:56:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
56 | scanf("%d%d%d", &n, &k, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:59:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
59 | scanf("%lld", &a[i]);
| ~~~~~^~~~~~~~~~~~~~~
main.cpp:62:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
62 | scanf("%lld", &b[i]);
| ~~~~~^~~~~~~~~~~~~~~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,0 |
176KB |
10,0 |
|
2
|
correct |
0,001 |
176KB |
10,0 |
|
3
|
correct |
0,001 |
176KB |
10,0 |
|
4
|
correct |
0,0 |
176KB |
10,0 |
|
5
|
correct |
0,035 |
8.82MB |
10,0 |
|
6
|
correct |
0,033 |
8.82MB |
10,0 |
|
7
|
correct |
0,04 |
8.79MB |
10,0 |
|
8
|
correct |
0,039 |
8.76MB |
10,0 |
|
9
|
correct |
0,038 |
8.82MB |
10,0 |
|
10
|
correct |
0,04 |
8.82MB |
10,0 |