cycle.cpp: In function 'int amount(int, int)':
cycle.cpp:54:22: error: 'n' was not declared in this scope; did you mean 'yn'?
54 | return (dst - src + n) % n;
| ^
| yn
cycle.cpp: In function 'bool move(int)':
cycle.cpp:58:9: error: 'jump' was not declared in this scope
58 | return jump(dis);
| ^~~~
cycle.cpp: In function 'void setIO(std::string, bool)':
cycle.cpp:40:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
40 | freopen((str + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cycle.cpp:41:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
41 | freopen((str + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~