0%

size_t overflow

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;

int main() {
// your code goes here
size_t x = 0;
auto j = x - 1;
cout << j << endl; // 18446744073709551615
int i = j;
cout << i << endl; // -1
return 0;
}