Untitled

 avatar
unknown
c_cpp
a year ago
397 B
3
Indexable
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";
	}
	
	
	
}



Editor is loading...
Leave a Comment