p2p1 complete

This commit is contained in:
Seth Samuel 2024-12-02 21:44:12 +13:00
parent a5ce4e5803
commit d1d69d08ad
2 changed files with 1 additions and 3 deletions

View file

@ -19,10 +19,8 @@ int main(){
stringstream wholeDoc;
ifstream puzzle("input.txt", ifstream::in);
wholeDoc << puzzle.rdbuf();
while (getline(puzzle, line)) {
cout << line<<"\n";
istringstream lineStream(line);
string numberString;
list<int> currentLevels;
@ -44,7 +42,7 @@ int main(){
} else if (prevlevel > currentLevels.front()){
dir = UP;
} else {
break;
currentLevels.clear();
}