Submission #138713

# Submission time Handle Problem Language Result Execution time Memory
138713 2019-07-30T08:59:08 Z WongHokFong_cpp Mecho (IOI09_mecho) C++14
Compilation error
0 ms 0 KB
#include <iostream>
#include <cstdlib>
#include <cstdio>
using namespace std;
int n,c;
char a[10001][10001];
int main(void)
{
	cin>>n>>c;
	gets(a[1]);
	for (int i=1;i<=n;i++)
	{
		gets(a[i]);
	}
	cout<<-1;
}

Compilation message

mecho.cpp: In function 'int main()':
mecho.cpp:10:2: error: 'gets' was not declared in this scope
  gets(a[1]);
  ^~~~
mecho.cpp:10:2: note: suggested alternative: 'fgets'
  gets(a[1]);
  ^~~~
  fgets