I am getting error like
/hackerearth/CPP14_28/s_e3.cpp: In function ‘int main()’: /hackerearth/CPP14_28/s_e3.cpp:6:10: error: declaration of ‘auto x’ has no initializer auto x; ^
My code is ,
#include <iostream>
using namespace std;
int main()
{
auto x;
cin >> x;
cout << x;
return 0;
}
I want similar functionality that data type should be dynamically assigned