Advertisement
Guest User

std::size_t error

a guest
Mar 12th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.90 KB | Software | 0 0
  1. vscode ➜ /workspaces/c-cpp-mirror/11032023-arrays $ make determinant
  2. g++     determinant.cpp   -o determinant
  3. In file included from determinant.cpp:1:
  4. /usr/include/c++/10/array: In instantiation of ‘struct std::__array_traits<std::array<double, 18446744073709551615>, 18446744073709551615>’:
  5. /usr/include/c++/10/array:110:56:   required from ‘struct std::array<std::array<double, 18446744073709551615>, 18446744073709551615>
  6. 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>]
  7. 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>]
  8. determinant.cpp:66:57:   required from here
  9. /usr/include/c++/10/array:50:19: error: size18446744073709551615’ of array exceeds maximum object size9223372036854775807
  10.    50 |       typedef _Tp _Type[_Nm];
  11.       |                   ^~~~~
  12. /usr/include/c++/10/array: In instantiation of ‘struct std::__array_traits<double, 18446744073709551615>’:
  13. /usr/include/c++/10/array:110:56:   recursively required from ‘struct std::array<double, 18446744073709551615>
  14. /usr/include/c++/10/array:110:56:   required from ‘struct std::array<std::array<double, 18446744073709551615>, 18446744073709551615>
  15. 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>]
  16. 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>]
  17. determinant.cpp:66:57:   required from here
  18. /usr/include/c++/10/array:50:19: error: size18446744073709551615’ of array exceeds maximum object size9223372036854775807
  19. make: *** [<builtin>: determinant] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement