prog.cpp:36:10: warning: ISO C++11 requires whitespace after the macro name
#define a[] ()
^
prog.cpp: In function 'int main()':
prog.cpp:36:10: error: expected unqualified-id before '[' token
#define a[] ()
^
prog.cpp:38:13: note: in expansion of macro 'a'
Array<int> a(20, 5);
^
In file included from prog.cpp:2:0:
prog.cpp: In lambda function:
prog.cpp:39:10: error: expected '{' before '.' token
assert(a.get(0,0) == 0);
^
prog.cpp: In function 'int main()':
prog.cpp:39:11: error: 'struct main()::<lambda()>' has no member named 'get'
assert(a.get(0,0) == 0);
^
prog.cpp: In lambda function:
prog.cpp:40:10: error: expected '{' before '.' token
assert(a.get(0,5) == 5);
^
prog.cpp: In function 'int main()':
prog.cpp:40:11: error: 'struct main()::<lambda()>' has no member named 'get'
assert(a.get(0,5) == 5);
^
prog.cpp: In lambda function:
prog.cpp:41:10: error: expected '{' before '.' token
assert(a.get(19,4) == 99);
^
prog.cpp: In function 'int main()':
prog.cpp:41:11: error: 'struct main()::<lambda()>' has no member named 'get'
assert(a.get(19,4) == 99);
^