#include <iostream>#include <string>using namespace std; int main() { string s = "0xfffefffe"; unsigned int x = stoul(s, nullptr, 16); cout<< x << endl; return 0;}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:7:31: error: 'nullptr' was not declared in this scope unsigned int x = stoul(s, nullptr, 16); ^ prog.cpp:7:42: error: 'stoul' was not declared in this scope unsigned int x = stoul(s, nullptr, 16); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!