added day02 file
This commit is contained in:
parent
120a39fb6e
commit
72503af66b
|
@ -4,6 +4,11 @@
|
|||
|
||||
#include "day02.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <bits/fs_fwd.h>
|
||||
#include <bits/fs_path.h>
|
||||
|
||||
/*
|
||||
--- Day 2: Red-Nosed Reports ---
|
||||
|
||||
|
@ -54,4 +59,14 @@ Analyze the unusual data from the engineers. How many reports are safe?
|
|||
void day02::Calculate()
|
||||
{
|
||||
|
||||
std::ifstream input("input/day02.txt");
|
||||
|
||||
if (!input)
|
||||
{
|
||||
std::cerr << "Failed to open input file." << std::endl;
|
||||
std::cout << "Current path is " << std::filesystem::current_path() << '\n';
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,12 @@
|
|||
22 25 27 28 30 31 32 29
|
||||
72 74 75 77 80 81 81
|
||||
52 53 55 58 59 63
|
||||
14 17 19 22 27
|
||||
65 68 67 68 71 73 76 77
|
||||
53 56 53 55 54
|
||||
60 62 59 62 62
|
||||
27 30 28 31 32 35 39
|
||||
64 67 68 71 74 71 74 81
|
||||
29 32 32 33 36 39 40
|
||||
72 74 74 75 74
|
||||
11 14 14 17 17
|
Loading…
Reference in New Issue