I'm trying to make a stack of integer arrays, like so:
stack<int[2]> stk;
int arr[2] = {1,2};
stk.push(arr);
however, Visual C++ gives me the error
error C2075: 'Target of operator new()' : array initialization needs curly braces
and MinGW gives me the error
error: parenthesized initializer in array new
The error seems to be coming from stk.push(arr). What does the error mean, and how would I properly make a stack of integer arrays?