spiderman.cpp: In function 'int main()':
spiderman.cpp:17:17: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | std::freopen("fufu.in","r",stdin);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
spiderman.cpp:19:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | std::scanf("%d %d",&n,&k);
| ~~~~~~~~~~^~~~~~~~~~~~~~~
spiderman.cpp:21:19: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | std::scanf("%d",val + i),
| ~~~~~~~~~~^~~~~~~~~~~~~~