#include <iostream> int main() { const bool z = true; const int x = 5, y = 3; int arr[[&]() -> int{return z ? x : y;}]; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:6:11: error: expected ‘]’ before ‘&’ token
int arr[[&]() -> int{return z ? x : y;}];
^
prog.cpp:6:41: error: expected initializer before ‘]’ token
int arr[[&]() -> int{return z ? x : y;}];
^
Standard output is empty