No the code is ill-formed in C++11. auto in C++11 would be used to deduce the type of a variable from its initializer and it can't be used as a storage class specifier.
Correct Usage
int main()
{
auto x = 12; // x is an int
auto y = 12.3; // y is a double
}