CSES - Datatähti 2018 alku - Results
Submission details
Task:Fraktaali
Sender:Katajisto
Submission time:2017-10-03 11:03:31 +0300
Language:C++
Status:COMPILE ERROR

Compiler report

input/code.cpp:1:20: fatal error: stdafx.h: No such file or directory
 #include "stdafx.h"
                    ^
compilation terminated.

Code

#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
int input;
cin >> input;
if (input == 1)
{
cout << "#" << endl;
}
if (input == 2)
{
cout << "##" << endl;
cout << "#." << endl;
}
if (input == 3)
{
cout << "#####" << endl;
cout << "#.#." << endl;
cout << "##.." << endl;
cout << "#..#" << endl;
}
}