diff --git a/CMakeLists.txt b/CMakeLists.txt index 76209ab..e21bfaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ if (UNIX) add_link_options( -fsanitize=address -fsanitize=undefined + -lm ) endif () diff --git a/src/1534.c b/src/1534.c index 5b45513..42caa57 100644 --- a/src/1534.c +++ b/src/1534.c @@ -1,7 +1,7 @@ // // Created by xfj12 on 2025/4/14. // -#include +#include #include int countGoodTriplets(int *arr, int arrSize, int a, int b, int c) { diff --git a/src/219.c b/src/219.c index 6165e98..9445b96 100644 --- a/src/219.c +++ b/src/219.c @@ -2,7 +2,7 @@ // Created by xfj12 on 2025/3/24. // #include -#include +#include #include bool containsNearbyDuplicate(int *nums, int numsSize, int k) diff --git a/src/3110.c b/src/3110.c index f9e2b14..2e4a394 100644 --- a/src/3110.c +++ b/src/3110.c @@ -1,5 +1,5 @@ #include -#include +#include #include // // Created by xfj12 on 2025/3/24. diff --git a/tests/test_326.cpp b/tests/test_326.cpp index 008cc8b..6782336 100644 --- a/tests/test_326.cpp +++ b/tests/test_326.cpp @@ -1,3 +1,4 @@ +#include #include #include diff --git a/tests/test_lcp_67.cpp b/tests/test_lcp_67.cpp index 5272543..8afb255 100644 --- a/tests/test_lcp_67.cpp +++ b/tests/test_lcp_67.cpp @@ -1,8 +1,8 @@ // // Created by xfj12 on 2025/3/25. // +#include #include -#include #include bool areTreesEqual(TreeNode *t1, TreeNode *t2)