Added day 10, but then the queue popped in FACEIT.

This commit is contained in:
2022-12-18 23:34:18 -05:00
parent ad3e9e42bb
commit 03b991a582
3 changed files with 177 additions and 0 deletions

29
2022/10/main.cpp Normal file
View File

@@ -0,0 +1,29 @@
#include <fstream>
#include <iostream>
#include <set>
#include <string>
#include <vector>
int main()
{
std::ifstream ifs("data.txt");
if(!ifs.is_open())
{
std::cerr << "Missing data.txt." << std::endl;
return -1;
}
unsigned long total = 0;
unsigned long total_pt2 = 0;
for(std::string line; std::getline(ifs, line); )
{
if(line == "")
continue;
}
std::cout << " Total: " << total << std::endl;
std::cout << "PT2 Total: " << total_pt2 << std::endl;
return 0;
}