diff --git a/src/20241007/matrix/matrix_1007.cpp b/src/20241007/matrix/matrix_1007.cpp index 78392aa..f0e994b 100644 --- a/src/20241007/matrix/matrix_1007.cpp +++ b/src/20241007/matrix/matrix_1007.cpp @@ -30,7 +30,7 @@ std::ostream&operator<<(std::ostream &os,const std::vector &v)noexcept{ } template -size_t hashVector1(const std::vector& vec) { +size_t hashVector1(const std::vector& vec) noexcept{ size_t seed = 0; for (size_t i = 0; i < vec.size(); ++i) { // 结合元素的值和其索引来生成哈希 @@ -40,7 +40,7 @@ size_t hashVector1(const std::vector& vec) { } template -size_t hashVector2(const std::vector& vec) { +size_t hashVector2(const std::vector& vec) noexcept{ size_t seed = 0; for (size_t i = 0; i < vec.size(); ++i) { // 结合元素的值和其索引来生成哈希 @@ -86,5 +86,5 @@ void dfs(size_t x, size_t y){ int main(){ cin>>n>>m>>k; dfs(1,1); - cout<