timovi.cpp: In function 'int main()':
timovi.cpp:13:9: warning: unused variable 'idx' [-Wunused-variable]
int idx=0;
^~~
timovi.cpp:14:10: warning: unused variable 'forw' [-Wunused-variable]
bool forw=true;
^~~~
timovi.cpp:25:17: warning: unused variable 'st' [-Wunused-variable]
int ti = 2, st, en;
^~
timovi.cpp:25:21: warning: unused variable 'en' [-Wunused-variable]
int ti = 2, st, en;
^~
timovi.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &k, &m);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~