[ create a new paste ] login | about

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

C++, pasted on Jun 21:
1
2
3
4
5
6
7
8
9
10
#include <iostream>

using namespace std;

int main()
{
    unsigned x = 1;
    unsigned y = x >> 32;
    cout << x << endl << y;
}


Output:
1
2
3
cc1plus: warnings being treated as errors
In function 'int main()':
Line 8: warning: right shift count >= width of type


Create a new paste based on this one


Comments: