제출 #138713

#제출 시각아이디문제언어결과실행 시간메모리
138713WongHokFong_cppMecho (IOI09_mecho)C++14
컴파일 에러
0 ms0 KiB
#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; }

컴파일 시 표준 에러 (stderr) 메시지

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