[ create a new paste ] login | about

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

C++, pasted on Nov 15:
1
2
3
4
5
6
7
8
9
10
int main( void )
{
    int n = 10 ;
    for(int j = 0; j < n; j++){ 
        // do something useful. . .
    }
    cout << j <<endl;

    return 0 ;
}


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


Create a new paste based on this one


Comments: