[ create a new paste ] login | about

Link: http://codepad.org/0xrHYaM8    [ raw code | output | fork ]

C++, pasted on Jul 12:
1
2
3
4
5
6
7
int main(){
for(int i = 0; i< 10; i++){
  cout<< i << endl;
}
cout<< i<<endl;
return 0
}


Output:
1
2
3
In function 'int main()':
Line 5: error: name lookup of 'i' changed for new ISO 'for' scoping
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: