fix build error on Linux
This commit is contained in:
@@ -26,6 +26,7 @@ if (UNIX)
|
||||
add_link_options(
|
||||
-fsanitize=address
|
||||
-fsanitize=undefined
|
||||
-lm
|
||||
)
|
||||
endif ()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Created by xfj12 on 2025/4/14.
|
||||
//
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <solution/1534.h>
|
||||
int countGoodTriplets(int *arr, int arrSize, int a, int b, int c)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Created by xfj12 on 2025/3/24.
|
||||
//
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
bool containsNearbyDuplicate(int *nums, int numsSize, int k)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
//
|
||||
// Created by xfj12 on 2025/3/24.
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <climits>
|
||||
#include <gtest/gtest.h>
|
||||
#include <solution/326.h>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//
|
||||
// Created by xfj12 on 2025/3/25.
|
||||
//
|
||||
#include <climits>
|
||||
#include <gtest/gtest.h>
|
||||
#include <queue>
|
||||
#include <solution/lcp_67.h>
|
||||
|
||||
bool areTreesEqual(TreeNode *t1, TreeNode *t2)
|
||||
|
||||
Reference in New Issue
Block a user