Skrandis
- [1] 2023-04-22 12:04 (100)
Taškai: 100
Compile: OK
skrandis.cpp: In function ‘void setIO(std::string)’: skrandis.cpp:8:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | freopen((name + ".in").c_str(), "r", stdin); // see /general/input-output | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ skrandis.cpp:9:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | freopen((name + ".out").c_str(), "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nr. | result | time | message |
---|---|---|---|
1 | True | 0.001 s | ok |
2 | True | 0.001 s | ok |
3 | True | 0.001 s | ok |
4 | True | 0.001 s | ok |
5 | True | 0.001 s | ok |
6 | True | 0.001 s | ok |
7 | True | 0.002 s | ok |
8 | True | 0.001 s | ok |
9 | True | 0.001 s | ok |
10 | True | 0.022 s | ok |
11 | True | 0.03 s | ok |
12 | True | 0.001 s | ok |