Try compiling with WAll, that was dumb but fixed some things anyhow

This commit is contained in:
Jose Caban
2025-12-01 23:30:42 -05:00
parent dd0c70341e
commit b2c1ba8227
9 changed files with 206 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ public:
int clicksAtZero = 0;
if (mDebug) std::cout << "Turning left " << amount << " from " << mPosition;
while (amount > 0) {
if (mPosition == 0) {
mPosition = mMaxPosition;
@@ -64,10 +64,10 @@ public:
return mPosition;
}
private:
const bool mDebug;
const int mMaxPosition;
const int mMinPosition;
int mPosition;
const bool mDebug;
};
class Day01Solution : public AdventHelpers::AdventOfCodeSolution
@@ -124,7 +124,7 @@ public:
}
};
int main(const char *argv[], int argc)
int main()
{
Day01Solution solution;
solution.SolveAll();

View File

@@ -31,6 +31,7 @@
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v145</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<EnableASAN>true</EnableASAN>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
@@ -38,12 +39,14 @@
<PlatformToolset>v145</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<EnableASAN>false</EnableASAN>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v145</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<EnableASAN>true</EnableASAN>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
@@ -51,6 +54,7 @@
<PlatformToolset>v145</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<EnableASAN>false</EnableASAN>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">