log

  • Warning of using auto in cpp

   input.cpp:69:5: warning: 'auto' type specifier is a C++11 extension
      [-Wc++11-extensions]
    auto iter = str.begin();
    ^
		1 warning generated.

Solution

Use -std=c++11.

g++ input.cpp -o input -std=c++11