Submission #891286


Source Code Expand

#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cstring>

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;

#define SIZE(x) (int((x).size()))
#define rep(i,l,r) for (int i=(l); i<=(r); i++)
#define repd(i,r,l) for (int i=(r); i>=(l); i--)
#define rept(i,c) for (typeof((c).begin()) i=(c).begin(); i!=(c).end(); i++)

#ifndef ONLINE_JUDGE
#define debug(x) { cerr<<#x<<" = "<<(x)<<endl; }
#else
#define debug(x) {}
#endif

void lemon()
{
	char buf[100]; gets(buf);
	rep(i,0,3) printf("%c",buf[i]);
	printf(" ");
	rep(i,4,11) printf("%c",buf[i]);
}

int main()
{
	ios::sync_with_stdio(true);
	lemon();
	return 0;
}

Submission Info

Submission Time
Task A - CODEFESTIVAL 2016
User sillycross
Language C++14 (GCC 5.4.1)
Score 0
Code Size 786 Byte
Status CE

Compile Error

./Main.cpp: In function ‘void lemon()’:
./Main.cpp:29:25: error: ‘gets’ was not declared in this scope
  char buf[100]; gets(buf);
                         ^