Submission #81857

# Submission time Handle Problem Language Result Execution time Memory
81857 2018-10-27T12:04:31 Z zzee Nadan (COCI18_nadan) Python 3
Compilation error
0 ms 0 KB
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cctype>

using namespace std;

int main()
{
	int k,n,m,x,x1,g;
	cin >> k >> n;
	m = 1;
	x1 = 0;
	for (int i = g; i < n - 1 ; i = i + 1){
		x =  m;
		cout << m << endl;
		m = m + 1;
		x1 = x1 + x;
	}
	cout << k - x1 - g;
	return 0;

}

Compilation message

File "nadan.py", line 7
    using namespace std;
                  ^
SyntaxError: invalid syntax