To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 55ef5a3e authored by amiessen's avatar amiessen
Browse files

added day 9, part 2

parent c0fd09cd
......@@ -35,6 +35,7 @@ class intCode {
inputCount_ = 0;
relBase_ = 0;
}
~intCode() = default;
// Getters
size_t getPosition() { return pos_; }
......
......@@ -26,11 +26,7 @@ int main() {
readData(data_path, initCode);
std::vector<int> test{109,1,204,-1,1001,100,1,100,1008,100,16,101,1006,101,0,99};
std::vector<long> test2{1102,34915192,34915192,7,4,7,99,0};
std::vector<long> test3{104,1125899906842624,99};
std::vector<long> input{1};
intCode<double> IC(initCode);
std::vector<long> input{2};
intCode<long> IC(initCode);
IC.runIntCode(input);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment