look my code below
Code:
int x;int y;
int main()
{
for(int n=1;n<3;n=n+1) {
for(int m=1;m<3;m=m+1) {
x=n+m;y=n-m;
}
}
while(x>0) {
while(y<4) {
n=n+x+y;y=y-x-y;
y=y+1;
}
x--;
}
if(!(n!=6)&&!(n!=-4)){
printf("My Logic Was Right :) \n");
}
else {
printf("Computer Login Wins :) \n");
}
}
the expected output is for True condition of if
and my logic of final result of me was
Code:
/*n=n+x+y (2+1+3) =6; m=m-x-y (2-3-3) =-4 */
and when i compile the program using MingW32
on that line its givin error message
error: name lookup of 'n' changed for ISO 'for' scoping [-fpermissive]
note: if you use ('-fpermissive' G++ will accpt your code)
okay thats my problem
any ideas with that?