/in/foo.cc: In function 'int main(int, const char**)':
/in/foo.cc:25:66: warning: operation on 'j' may be undefined [-Wsequence-point]
for (int j=forstart+1; (flag&&j<forend)||(!flag&&j>forend); j= p3==1 ? ++j:--j){
~^~~~~~~~~~~~~~~~~
/in/foo.cc:28:19: error: 'elseif' was not declared in this scope
elseif(p1==2) {tempchar= flag ? char(j-31):char(j-33);}
^
/in/foo.cc:29:7: error: expected '}' before 'else'
else {tempchar='*';}
^~~~
/in/foo.cc:31:6: error: expected '}' before 'else'
else{
^~~~
/in/foo.cc:35:35: error: 'j' was not declared in this scope
else {tempchar= flag ? char(j+1):char(j-1);}
^
/in/foo.cc: At global scope:
/in/foo.cc:43:2: error: expected declaration before '}' token
}
^