Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
397 B
0
Indexable
Never
using namespace std;

#include <iostream>
#include <iostream>
#include <stdio.h>
#include <string>
#include <ctime>
#include <fstream>

const string falename = "input.txt";


int main()
{
	ifstream fin(falename);
	if (!fin.is_open()) {
		cout << "error";
	}
	int n;
	int a;
	fin >> n;
	for (int i = 0; i < n; i++)
	{
		fin >> a;
		cout << a << "\n";
	}
	
	
	
}



Leave a Comment