Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
11 August 2023, 18:08 |
c++20 |
100.0 |
main.cpp: In function ‘void GiveValue(int*, char*)’:
main.cpp:19:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
19 | if(!rest)
| ^~
main.cpp:21:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
21 | for(i = 0; i < rest; i++)
| ^~~
main.cpp: In function ‘int main()’:
main.cpp:138:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
138 | freopen("dragonball.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:139:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
139 | freopen("dragonball.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:141:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
141 | scanf("%d%d ",&n,&t);
| ~~~~~^~~~~~~~~~~~~~~
main.cpp:142:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
142 | scanf("%s",s);
| ~~~~~^~~~~~~~
main.cpp:147:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
147 | scanf("%s",s);
| ~~~~~^~~~~~~~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,0 |
176KB |
10,0 |
|
2
|
correct |
0,004 |
6.47MB |
10,0 |
|
3
|
correct |
0,0 |
176KB |
10,0 |
|
4
|
correct |
0,005 |
5.68MB |
10,0 |
|
5
|
correct |
0,0 |
176KB |
10,0 |
|
6
|
correct |
0,055 |
21.91MB |
10,0 |
|
7
|
correct |
0,02 |
2.4MB |
10,0 |
|
8
|
correct |
0,038 |
11.07MB |
10,0 |
|
9
|
correct |
0,063 |
21.91MB |
10,0 |
|
10
|
correct |
0,064 |
21.92MB |
10,0 |