toy.cpp:3: warning: ignoring '#pragma GCC optmize' [-Wunknown-pragmas]
3 | #pragma GCC optmize("O3")
|
toy.cpp: In function 'int main()':
toy.cpp:31:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | freopen("stdin", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
toy.cpp:32:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | freopen("stdout", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
toy.cpp:33:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
33 | freopen("stderr", "w", stderr);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
toy.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~