D
Note that if the name of an object is parenthesized, it is treated as an ordinary lvalue expression, thus decltype(x) and decltype((x)) are often different types.
Size: a a a
D
Note that if the name of an object is parenthesized, it is treated as an ordinary lvalue expression, thus decltype(x) and decltype((x)) are often different types.
c
D
D
💮
c
FO
auto main() {};
низзя скомпилить 😔c
c
D
c
FO
c
c
FO
c
t
D
FO
$ g++ -std=c++11 main.cpp
main.cpp:1:1: error: ‘main’ function uses ‘auto’ type specifier without trailing return type
1 | auto main() {}
| ^~~~
main.cpp:1:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
main.cpp:1:1: error: ‘::main’ must return ‘int’
$ g++ -std=c++14 main.cpp
main.cpp:1:1: error: ‘::main’ must return ‘int’
1 | auto main() {}
| ^~~~
t