Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
4 August 2023, 18:52 |
c++20 |
100.0 |
main.cpp: In function ‘void solve()’:
main.cpp:22:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
22 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
main.cpp:25:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
25 | scanf("%d", &v[i]);
| ~~~~~^~~~~~~~~~~~~
main.cpp: In function ‘int main()’:
main.cpp:74:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
74 | freopen("s2c.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:75:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
75 | freopen("s2c.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:77:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
77 | scanf("%d", &t);
| ~~~~~^~~~~~~~~~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,013 |
16.45MB |
5,0 |
|
2
|
correct |
0,065 |
16.45MB |
5,0 |
|
3
|
correct |
0,063 |
16.46MB |
5,0 |
|
4
|
correct |
0,066 |
16.45MB |
5,0 |
|
5
|
correct |
0,129 |
16.45MB |
5,0 |
|
6
|
correct |
0,142 |
16.45MB |
5,0 |
|
7
|
correct |
0,162 |
16.45MB |
5,0 |
|
8
|
correct |
0,205 |
16.46MB |
5,0 |
|
9
|
correct |
0,222 |
16.45MB |
5,0 |
|
10
|
correct |
0,217 |
16.45MB |
5,0 |
|
11
|
correct |
0,221 |
16.46MB |
5,0 |
|
12
|
correct |
0,013 |
16.42MB |
5,0 |
|
13
|
correct |
0,217 |
16.45MB |
5,0 |
|
14
|
correct |
0,018 |
16.45MB |
5,0 |
|
15
|
correct |
0,012 |
16.4MB |
5,0 |
|
16
|
correct |
0,024 |
16.45MB |
5,0 |
|
17
|
correct |
0,024 |
16.45MB |
5,0 |
|
18
|
correct |
0,035 |
16.45MB |
5,0 |
|
19
|
correct |
0,043 |
16.34MB |
5,0 |
|
20
|
correct |
0,064 |
16.46MB |
5,0 |