Code:#include <iostream>using namespace std; int main() { int array[8]; for(int x=0; x<8; x++) cin>>array[x]; for(x=0; x<8; x++) cout<<array[x]; return 0; }
D:\Documents\C PROGRAMS\Chal1\main.cpp||In function 'int main()':|
D:\Documents\C PROGRAMS\Chal1\main.cpp|9|error: name lookup of 'x' changed for ISO 'for' scoping [-fpermissive]|
D:\Documents\C PROGRAMS\Chal1\main.cpp|9|note: (if you use '-fpermissive' G++ will accept your code)|
||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===|
please help...
thanks in advance