Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
4 August 2023, 19:20 |
c++14 |
100.0 |
main.cpp: In function ‘int main()’:
main.cpp:9:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | freopen("mesaj.in", "r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:10:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | freopen("mesaj.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d\n",&P);
| ~~~~~^~~~~~~~~~~
main.cpp:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
12 | scanf("%d\n%c%c",&N, &x, &s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:16:13: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
16 | scanf("%c%c", &y, &s);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:22:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
22 | scanf("%c%c", &y, &s);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:28:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
28 | scanf("%c%c", &y, &s);
| ~~~~~^~~~~~~~~~~~~~~~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,0 |
176KB |
5,0 |
|
2
|
correct |
0,052 |
176KB |
5,0 |
|
3
|
correct |
0,024 |
176KB |
5,0 |
|
4
|
correct |
0,025 |
176KB |
5,0 |
|
5
|
correct |
0,097 |
176KB |
5,0 |
|
6
|
correct |
0,098 |
176KB |
5,0 |
|
7
|
correct |
0,023 |
176KB |
5,0 |
|
8
|
correct |
0,023 |
176KB |
5,0 |
|
9
|
correct |
0,05 |
176KB |
5,0 |
|
10
|
correct |
0,053 |
176KB |
5,0 |
|
11
|
correct |
0,048 |
176KB |
5,0 |
|
12
|
correct |
0,1 |
176KB |
5,0 |
|
13
|
correct |
0,018 |
176KB |
5,0 |
|
14
|
correct |
0,064 |
176KB |
5,0 |
|
15
|
correct |
0,043 |
286KB |
5,0 |
|
16
|
correct |
0,09 |
258KB |
5,0 |
|
17
|
correct |
0,11 |
294KB |
5,0 |
|
18
|
correct |
0,098 |
176KB |
5,0 |
|
19
|
correct |
0,098 |
241KB |
5,0 |
|
20
|
correct |
0,102 |
278KB |
5,0 |