Untitled
unknown
c_cpp
2 years ago
397 B
6
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