/in/foo.cc: In function 'int main()':
/in/foo.cc:8:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(int x1=3; x1=x/2;x1+=2)
^
/in/foo.cc:13:6: error: 'i' was not declared in this scope
if(i<x1)
^
/in/foo.cc:17:8: error: 'i' was not declared in this scope
for(i=2; i<x2; i++)
^
/in/foo.cc:17:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=2; i<x2; i++)
^~~
/in/foo.cc:20:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if(i==x2)
^~
/in/foo.cc:20:8: error: 'i' was not declared in this scope
if(i==x2)
^