Submission #138712

#TimeUsernameProblemLanguageResultExecution timeMemory
138712WongHokFong_cppMecho (IOI09_mecho)C++14
Compilation error
0 ms0 KiB
#include <iostream> #include <cstdlib> 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 (stderr)

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