__int128 not recognized by compiler

I was trying to use __int128 on my compiler when I encountered this error.

#include<bits/stdc++.h>
using namespace std;
int main(){
    __int128 a = 10; cout<<a;
    return 0;
}
error: expected primary-expression before '__int128'
     __int128 a = 10; cout<<a;

Why does this error occur? Is it because I am using MinGW-32 bit compiler? Or this datatype is supported only in C++17?

Looks like this is the reason.

1 Like