Author
anonymous
almost 5 years ago
Language
Compiler
Options
Author
anonymous
almost 5 years ago
$
prog.cc: In function 'int main()':
prog.cc:10:16: error: expected ')' before ',' token
10 | alignas(char, short) char x;
| ~ ^
| )
prog.cc:10:16: error: expected ')' before ',' token
10 | alignas(char, short) char x;
| ~ ^
| )
prog.cc:10:16: error: expected declaration before ',' token
prog.cc:10:16: error: expected primary-expression before ',' token
prog.cc:10:18: error: expected primary-expression before 'short'
10 | alignas(char, short) char x;
| ^~~~~
prog.cc:11:20: error: 'x' was not declared in this scope
11 | cout << alignof(x);
| ^
Exit Code:
1