33 lines
No EOL
665 B
C++
33 lines
No EOL
665 B
C++
#include <stdio.h>
|
|
#include <list>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <sstream>
|
|
|
|
using namespace std;
|
|
|
|
int main(){
|
|
|
|
list<int> currntlevels{};
|
|
string line;
|
|
int safeReports = 0;
|
|
|
|
ifstream puzzle("input.txt", ifstream::in);
|
|
|
|
while (getline(puzzle, line)) {
|
|
istringstream lineStream(line);
|
|
string number;
|
|
cout << "{";
|
|
while (getline(lineStream, number, ' ')) {
|
|
cout << number<<"|";
|
|
}
|
|
cout << "}";
|
|
}
|
|
/*
|
|
for (line; !puzzle.eof();puzzle.getline(line,'\n')) {
|
|
cout << line << "\n";
|
|
}
|
|
*/
|
|
} |