Untitled
unknown
c_cpp
2 years ago
419 B
5
Indexable
using namespace std;
#include <iostream>
#include <iostream>
#include <stdio.h>
#include <string>
#include <ctime>
#include <fstream>
const string filename = "input.txt";
void read(int& a) {
ifstream in(filename);
if (!in.is_open()) {
cout << "error"; return;
}
in >> a;
in.close();
}
int main()
{
int a;
read(a);
cout << a;
}
Editor is loading...
Leave a Comment