/in/foo.cc: In function 'int main()':
/in/foo.cc:109:47: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
for(int i=1;i<=9;i++) scanf("%d",&st[1][i]);
^
/in/foo.cc:110:45: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
for(int i=1;i<=9;i++) scanf("%d",&ans[i]);
^
/in/foo.cc:113:9: warning: unused variable 'res' [-Wunused-variable]
int res=bfs();
^
/in/foo.cc:108:28: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("in.txt","r",stdin);
^
/in/foo.cc:109:48: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=9;i++) scanf("%d",&st[1][i]);
^
/in/foo.cc:110:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=9;i++) scanf("%d",&ans[i]);
^
/in/foo.cc: In function 'int bfs()':
/in/foo.cc:89:35: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
t[pos] = s[newpos];
^