Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
4 August 2023, 19:04 |
c++11 |
100.0 |
main.cpp: In function ‘int main()’:
main.cpp:16:13: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
16 | gets(s);
| ~~~~^~~
In file included from /usr/include/stdio.h:894,
from /usr/include/c++/11/cstdio:42,
from main.cpp:2:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:240:1: note: declared here
240 | gets (char *__str)
| ^~~~
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("tv.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:11:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | freopen("tv.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
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%d\n", &p, &n);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:15:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
15 | scanf("%d ",&d);
| ~~~~~^~~~~~~~~~
main.cpp:16:13: warning: ignoring return value of ‘char* gets(char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
16 | gets(s);
| ~~~~^~~
/usr/bin/ld: ./cchphfJM.o: in function `main':
main.cpp:(.text.startup+0xa6): warning: the `gets' function is dangerous and should not be used.
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,001 |
176KB |
6,0 |
|
2
|
correct |
0,009 |
307KB |
6,0 |
|
3
|
correct |
0,0 |
176KB |
4,0 |
|
4
|
correct |
0,0 |
176KB |
4,0 |
|
5
|
correct |
0,001 |
176KB |
4,0 |
|
6
|
correct |
0,0 |
176KB |
4,0 |
|
7
|
correct |
0,003 |
307KB |
4,0 |
|
8
|
correct |
0,002 |
307KB |
4,0 |
|
9
|
correct |
0,01 |
307KB |
4,0 |
|
10
|
correct |
0,01 |
307KB |
4,0 |
|
11
|
correct |
0,01 |
307KB |
4,0 |
|
12
|
correct |
0,0 |
176KB |
6,0 |
|
13
|
correct |
0,01 |
307KB |
4,0 |
|
14
|
correct |
0,001 |
176KB |
6,0 |
|
15
|
correct |
0,0 |
176KB |
6,0 |
|
16
|
correct |
0,005 |
380KB |
6,0 |
|
17
|
correct |
0,003 |
307KB |
6,0 |
|
18
|
correct |
0,01 |
307KB |
6,0 |
|
19
|
correct |
0,01 |
307KB |
6,0 |
|
20
|
correct |
0,008 |
307KB |
6,0 |