Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vscode ➜ /workspaces/c-cpp-mirror/11032023-arrays $ make determinant
- g++ determinant.cpp -o determinant
- In file included from determinant.cpp:1:
- /usr/include/c++/10/array: In instantiation of ‘struct std::__array_traits<std::array<double, 18446744073709551615>, 18446744073709551615>’:
- /usr/include/c++/10/array:110:56: required from ‘struct std::array<std::array<double, 18446744073709551615>, 18446744073709551615>’
- determinant.cpp:47:72: recursively required from ‘double getDeterminant(Matrix<N>) [with long unsigned int N = 2; Matrix<N> = std::array<std::array<double, 2>, 2>]’
- determinant.cpp:47:72: required from ‘double getDeterminant(Matrix<N>) [with long unsigned int N = 3; Matrix<N> = std::array<std::array<double, 3>, 3>]’
- determinant.cpp:66:57: required from here
- /usr/include/c++/10/array:50:19: error: size ‘18446744073709551615’ of array exceeds maximum object size ‘9223372036854775807’
- 50 | typedef _Tp _Type[_Nm];
- | ^~~~~
- /usr/include/c++/10/array: In instantiation of ‘struct std::__array_traits<double, 18446744073709551615>’:
- /usr/include/c++/10/array:110:56: recursively required from ‘struct std::array<double, 18446744073709551615>’
- /usr/include/c++/10/array:110:56: required from ‘struct std::array<std::array<double, 18446744073709551615>, 18446744073709551615>’
- determinant.cpp:47:72: recursively required from ‘double getDeterminant(Matrix<N>) [with long unsigned int N = 2; Matrix<N> = std::array<std::array<double, 2>, 2>]’
- determinant.cpp:47:72: required from ‘double getDeterminant(Matrix<N>) [with long unsigned int N = 3; Matrix<N> = std::array<std::array<double, 3>, 3>]’
- determinant.cpp:66:57: required from here
- /usr/include/c++/10/array:50:19: error: size ‘18446744073709551615’ of array exceeds maximum object size ‘9223372036854775807’
- make: *** [<builtin>: determinant] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement