strange_device.cpp:2: warning: ignoring '#pragma optimize ' [-Wunknown-pragmas]
2 | #pragma optimize("g", on)
|
strange_device.cpp: In function 'void solve()':
strange_device.cpp:28:22: error: 'r' was not declared in this scope
28 | cout << min(A * B, r - l + 1) << '\n';
| ^
strange_device.cpp:28:26: error: 'l' was not declared in this scope
28 | cout << min(A * B, r - l + 1) << '\n';
| ^
strange_device.cpp: In function 'void Freopen()':
strange_device.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("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.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("output.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~