Closed MuhammadSawalhy closed 2 years ago
Please provide main.cpp
and input.txt
#include <bits/stdc++.h>
using namespace std;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string a, b;
while (cin >> a) {
cin >> b;
std::cout << a << " * " << b << std::endl;
}
return 0;
}
12
12
2
222222222222222222222222
Fixed with aa3bbfbd4432ef28f026148c99961811562c77ef
I have tried this snippet of code to read until the last line of input:
And when I
CompetiTestRun
it resulted in TIMEOUT. But it works in the terminal with redirecting a file to the stdin of the program.