/in/foo.cc: In function 'int main()':
/in/foo.cc:28:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
28 | if(map[i][j-1]==ch&&map[j-1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:30:8: error: 'f1' was not declared in this scope; did you mean 'f8'?
30 | long x=f1[i][j-1];
| ^~
| f8
/in/foo.cc:36:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
36 | if(map[j-1]==ch&&map[j]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:36:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
36 | if(map[j-1]==ch&&map[j]==ch)
| ~~~~~~^~~~
/in/foo.cc:38:8: error: 'f2' was not declared in this scope; did you mean 'f8'?
38 | long x=f2[j-1];
| ^~
| f8
/in/foo.cc:44:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
44 | if(map[j]==ch&&map[j+1]==ch)
| ~~~~~~^~~~
/in/foo.cc:44:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
44 | if(map[j]==ch&&map[j+1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:46:8: error: 'f3' was not declared in this scope; did you mean 'f8'?
46 | long x=f3[j];
| ^~
| f8
/in/foo.cc:52:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
52 | if(map[i][j-1]==ch&&map[j]==ch)
| ~~~~~~^~~~
/in/foo.cc:54:8: error: 'f4' was not declared in this scope; did you mean 'f8'?
54 | long x=f4[i][j-1];
| ^~
| f8
/in/foo.cc:60:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
60 | if(map[j-1]==ch&&map[j]==ch&&map[j+1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:60:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
60 | if(map[j-1]==ch&&map[j]==ch&&map[j+1]==ch)
| ~~~~~~^~~~
/in/foo.cc:60:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
60 | if(map[j-1]==ch&&map[j]==ch&&map[j+1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:62:8: error: 'f5' was not declared in this scope; did you mean 'f8'?
62 | long x=f5[j-1];
| ^~
| f8
/in/foo.cc:70:11: error: request for member 'abc' in 'ans[k]', which is of non-class type 'int'
70 | if(ans[k].abc==(int)ch)break;
| ^~~
/in/foo.cc:71:20: error: request for member 'num' in 'ans[t]', which is of non-class type 'int'
71 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:71:35: error: request for member 'abc' in 'ans[t]', which is of non-class type 'int'
71 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:72:17: error: request for member 'num' in 'ans[k]', which is of non-class type 'int'
72 | if(k<=t){ans[k].num+=sum;}
| ^~~
/in/foo.cc:78:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
78 | if(map[j+1]==ch&&map[j]==ch&&map[j-1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:78:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
78 | if(map[j+1]==ch&&map[j]==ch&&map[j-1]==ch)
| ~~~~~~^~~~
/in/foo.cc:78:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
78 | if(map[j+1]==ch&&map[j]==ch&&map[j-1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:80:8: error: 'f6' was not declared in this scope; did you mean 'f8'?
80 | long x=f6[j-1];
| ^~
| f8
/in/foo.cc:88:11: error: request for member 'abc' in 'ans[k]', which is of non-class type 'int'
88 | if(ans[k].abc==(int)ch)break;
| ^~~
/in/foo.cc:89:20: error: request for member 'num' in 'ans[t]', which is of non-class type 'int'
89 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:89:35: error: request for member 'abc' in 'ans[t]', which is of non-class type 'int'
89 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:90:17: error: request for member 'num' in 'ans[k]', which is of non-class type 'int'
90 | if(k<=t){ans[k].num+=sum;}
| ^~~
/in/foo.cc:96:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
96 | if(map[i][j-1]==ch&&map[j-1]==ch&&map[j-1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:96:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
96 | if(map[i][j-1]==ch&&map[j-1]==ch&&map[j-1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:98:8: error: 'f7' was not declared in this scope; did you mean 'f8'?
98 | long x=f7[j-1];
| ^~
| f8
/in/foo.cc:106:11: error: request for member 'abc' in 'ans[k]', which is of non-class type 'int'
106 | if(ans[k].abc==(int)ch)break;
| ^~~
/in/foo.cc:107:20: error: request for member 'num' in 'ans[t]', which is of non-class type 'int'
107 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:107:35: error: request for member 'abc' in 'ans[t]', which is of non-class type 'int'
107 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:108:17: error: request for member 'num' in 'ans[k]', which is of non-class type 'int'
108 | if(k<=t){ans[k].num+=sum;}
| ^~~
/in/foo.cc:114:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
114 | if(map[i][j+1]==ch&&map[j+1]==ch&&map[j+1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:114:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
114 | if(map[i][j+1]==ch&&map[j+1]==ch&&map[j+1]==ch)
| ~~~~~~~~^~~~
/in/foo.cc:119:6: error: invalid types 'int[int]' for array subscript
119 | f8[i][j]=x+1;
| ^
/in/foo.cc:120:11: error: invalid types 'int[int]' for array subscript
120 | sum+=f8[i][j];
| ^
/in/foo.cc:124:11: error: request for member 'abc' in 'ans[k]', which is of non-class type 'int'
124 | if(ans[k].abc==(int)ch)break;
| ^~~
/in/foo.cc:125:20: error: request for member 'num' in 'ans[t]', which is of non-class type 'int'
125 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:125:35: error: request for member 'abc' in 'ans[t]', which is of non-class type 'int'
125 | if(k>t){t++;ans[t].num=sum;ans[t].abc=(int)ch;}
| ^~~
/in/foo.cc:126:17: error: request for member 'num' in 'ans[k]', which is of non-class type 'int'
126 | if(k<=t){ans[k].num+=sum;}
| ^~~
/in/foo.cc:128:30: error: 'cmp' was not declared in this scope; did you mean 'bcmp'?
128 | qsort(ans+1,t,sizeof(ans[0]),cmp);
| ^~~
| bcmp
/in/foo.cc:130:16: error: request for member 'num' in 'ans[i]', which is of non-class type 'int'
130 | ansall+=ans[i].num;
| ^~~
/in/foo.cc:133:20: error: request for member 'abc' in 'ans[i]', which is of non-class type 'int'
133 | cout<<(char)ans[i].abc<<" "<<ans[i].num<<endl;
| ^~~
/in/foo.cc:133:37: error: request for member 'num' in 'ans[i]', which is of non-class type 'int'
133 | cout<<(char)ans[i].abc<<" "<<ans[i].num<<endl;
| ^~~