运行 ID: 431845

Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’?
 include
 ^~~~~~~
 __has_include
Main.cc: In function ‘int main()’:
Main.cc:8:2: error: ‘cin’ was not declared in this scope
  cin>>m>>n;
  ^~~
Main.cc:8:2: note: suggested alternative: ‘main’
  cin>>m>>n;
  ^~~
  main
Main.cc:9:2: error: ‘memset’ was not declared in this scope
  memset(c,0x3f,sizeof(c));
  ^~~~~~
Main.cc:12:3: error: ‘scanf’ was not declared in this scope
   scanf("%d%d%d",&x,&y,&c);
   ^~~~~
Main.cc:21:8: error: ‘min’ was not declared in this scope
    ans=min(ans,a[t][2]);
        ^~~
Main.cc:21:8: note: suggested alternative: ‘main’
    ans=min(ans,a[t][2]);
        ^~~
        main
Main.cc:41:21: error: ‘printf’ was not declared in this scope
  if(ans!=0x3fffffff)printf("%d\n",ans);//不能到达终点
                     ^~~~~~
Main.cc:41:21: note: suggested alternative: ‘int’
  if(ans!=0x3fffffff)printf("%d\n",ans);//不能到达终点
                     ^~~~~~
                     int
Main.cc:42:7: error: ‘printf’ was not declared in this scope
  else printf("-1\n");
       ^~~~~~
Main.cc:42:7: note: suggested alternative: ‘int’
  else printf("-1\n");
       ^~~~~~
       int