Author
anonymous
almost 7 years ago
Language
Compiler
Options
Author
anonymous
almost 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:13:50: error: non-constant condition for static assertion
static_assert(sum_2d_array(&arr[0][0], 3, 2) == 21);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
prog.cc:13:31: in 'constexpr' expansion of 'sum_2d_array((& arr[0][0]), 3, 2)'
prog.cc:13:50: error: array subscript value '2' is outside the bounds of array type 'const int [2]'
Exit Code:
1