first commit

This commit is contained in:
2024-09-08 14:39:20 +08:00
commit a1127e008f
34 changed files with 1403 additions and 0 deletions

50
CMakeLists.txt Normal file
View File

@@ -0,0 +1,50 @@
cmake_minimum_required(VERSION 3.30)
project(leetcode C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories(include)
add_compile_options(
-Wall
-Wextra
-O0
-g3
-fsanitize=address
-fsanitize=undefined
-fno-omit-frame-pointer
)
add_link_options(
-fsanitize=address
-fsanitize=undefined
)
add_executable(13 13.c)
add_executable(88 88.c)
add_executable(100 100.c)
add_executable(101 101.c)
add_executable(104 104.c)
add_executable(108 108.c)
add_executable(110 110.c)
add_executable(111 111.c)
add_executable(112 112.c)
add_executable(136 136.c)
add_executable(141 141.c)
add_executable(144 144.c)
add_executable(145 145.c)
add_executable(160 160.c)
add_executable(169 169.c)
add_executable(190 190.c)
add_executable(191 191.c)
add_executable(202 202.c)
add_executable(225 225.c)
add_executable(228 228.c)
add_executable(231 231.c)
add_executable(263 263.c)
add_executable(268 268.c)
add_executable(278 278.c)
add_executable(374 374.c)
add_executable(2786 2786.c)