/in/foo.cc: In function 'int calc()':
/in/foo.cc:23:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=1; i<=st[0]; i++) sum+=st[i]; st[0]=0;
^~~
/in/foo.cc:23:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (int i=1; i<=st[0]; i++) sum+=st[i]; st[0]=0;
^~
/in/foo.cc:20:9: warning: unused variable 'i' [-Wunused-variable]
int i,sum=0;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:147:41: warning: array subscript has type 'char' [-Wchar-subscripts]
if(k<len[j]) Map[a[j][k]][a[j][k+1]]=Map[a[j][k+1]][a[j][k]]=1;
^
/in/foo.cc:147:52: warning: array subscript has type 'char' [-Wchar-subscripts]
if(k<len[j]) Map[a[j][k]][a[j][k+1]]=Map[a[j][k+1]][a[j][k]]=1;
^
/in/foo.cc:147:67: warning: array subscript has type 'char' [-Wchar-subscripts]
if(k<len[j]) Map[a[j][k]][a[j][k+1]]=Map[a[j][k+1]][a[j][k]]=1;
^
/in/foo.cc:147:76: warning: array subscript has type 'char' [-Wchar-subscripts]
if(k<len[j]) Map[a[j][k]][a[j][k+1]]=Map[a[j][k+1]][a[j][k]]=1;
^
/in/foo.cc:159:32: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!Map[Equ][Mul] && !Map[Equ][Add] && !Map[Mul][Add])
^
/in/foo.cc:159:37: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!Map[Equ][Mul] && !Map[Equ][Add] && !Map[Mul][Add])
^
/in/foo.cc:159:50: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!Map[Equ][Mul] && !Map[Equ][Add] && !Map[Mul][Add])
^
/in/foo.cc:159:55: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!Map[Equ][Mul] && !Map[Equ][Add] && !Map[Mul][Add])
^
/in/foo.cc:159:68: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!Map[Equ][Mul] && !Map[Equ][Add] && !Map[Mul][Add])
^
/in/foo.cc:159:73: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!Map[Equ][Mul] && !Map[Equ][Add] && !Map[Mul][Add])
^
/in/foo.cc:138:49: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations]
for (int i=0; i<=15; i++) lg2[1<<i]=i,Ans[i]=-100;
~~~~~~^~~~~
/in/foo.cc:138:20: note: within this loop
for (int i=0; i<=15; i++) lg2[1<<i]=i,Ans[i]=-100;
~^~~~