运行 ID: 110585

Main.cc: In function ‘void search(int, int)’:
Main.cc:14:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   return 0;
          ^
Main.cc:18:10: error: missing template arguments before ‘[’ token
   if (map[a-1][b]==0)
          ^
Main.cc:20:4: error: ‘road’ was not declared in this scope
    road[a-1][b]=1;
    ^~~~
Main.cc:20:4: note: suggested alternative: ‘fread’
    road[a-1][b]=1;
    ^~~~
    fread
Main.cc:24:10: error: missing template arguments before ‘[’ token
   if (map[a][b-1]==0)
          ^
Main.cc:26:4: error: ‘road’ was not declared in this scope
    road[a][b-1]=1;
    ^~~~
Main.cc:26:4: note: suggested alternative: ‘fread’
    road[a][b-1]=1;
    ^~~~
    fread
Main.cc:30:10: error: missing template arguments before ‘[’ token
   if (map[a+1][b]==0)
          ^
Main.cc:32:4: error: ‘road’ was not declared in this scope
    road[a+1][b]=1;
    ^~~~
Main.cc:32:4: note: suggested alternative: ‘fread’
    road[a+1][b]=1;
    ^~~~
    fread
Main.cc:36:10: error: missing template arguments before ‘[’ token
   if (map[a][b+1]==0)
          ^
Main.cc:38:4: error: ‘road’ was not declared in this scope
    road[a][b+1]=1;
    ^~~~
Main.cc:38:4: note: suggested alternative: ‘fread’
    road[a][b+1]=1;
    ^~~~
    fread
Main.cc: In function ‘int main()’:
Main.cc:57:8: error: ‘num’ was not declared in this scope
  cout<