Preview:
#include<iostream>
#include<fstream>
#include<cassert>
using namespace std;
int main()
{
	ifstream inputStream("input.txt");
	if (inputStream.fail())
	{
		cout << "Sees file is not there...or can't open it\n";
		return 0;
	}
	int x;
	inputStream >> x;
	inputStream.close();
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter