답안 #138713

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
138713 2019-07-30T08:59:08 Z WongHokFong_cpp Mecho (IOI09_mecho) C++14
컴파일 오류
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