It is found that the currently installed g++ does not have the option-std=c++11 enabled, and the new standard for c++11 and the list initialization in it cannot be used. Search after the solution: type: Alias g++= "g++-std=c++11", but this is temporary.
The text reads as follows:
Feature Description : Sets the alias of the directive.
syntax : alias[alias]=[directive name]
Parameters : If no parameters are added, all current alias settings are listed.
Example: [Email protected]:~$ alias
Alias egrep= ' Egrep--color=auto '
Alias fgrep= ' Fgrep--color=auto '
Alias grep= ' grep--color=auto '
Alias l= ' LS-CF '
Alias La= ' Ls-a '
Alias Ll= ' Ls-alf '
Alias ls= ' ls--color=auto '
Description: User can use alias, custom instruction aliases. If you enter alias only, you can list all of the current alias settings. Alias is only valid for the login operation. To automatically set an alias every time you log in, you can set an alias for the directive in/etc/profile or your own ~/.BASHRC.
Also, if you want to give each user an alias, add alias la= ' Ls-al ' line to the last side of the/ETC/BASHRC, BASHRC is the configuration file for the environment variable/ETC/BASHRC and ~/.BASHRC The difference is that one is set to a system-wide one that is set up for single-user use.
Alias can be used to turn a long command into any of our favorite short
If you want to make it permanent, write it into/ETC/BASHRC.
Linux:alias command Explanation