/in/foo.cc:5:16: error: expected ']' before ';' token
#define N 1010;
^
/in/foo.cc:8:8: note: in expansion of macro 'N'
int ma[N][N];
^
/in/foo.cc:8:9: error: expected unqualified-id before ']' token
int ma[N][N];
^
/in/foo.cc:8:12: error: expected unqualified-id before ']' token
int ma[N][N];
^
/in/foo.cc:5:16: error: expected ']' before ';' token
#define N 1010;
^
/in/foo.cc:9:9: note: in expansion of macro 'N'
int dis[N], pre[N];
^
/in/foo.cc:9:10: error: expected unqualified-id before ']' token
int dis[N], pre[N];
^
/in/foo.cc:9:18: error: expected unqualified-id before ']' token
int dis[N], pre[N];
^
/in/foo.cc:5:16: error: expected ']' before ';' token
#define N 1010;
^
/in/foo.cc:11:10: note: in expansion of macro 'N'
bool vis[N];
^
/in/foo.cc:11:11: error: expected unqualified-id before ']' token
bool vis[N];
^
/in/foo.cc: In function 'void init()':
/in/foo.cc:14:9: error: 'ma' was not declared in this scope
memset(ma, 0x3f, sizeof(ma));
^~
/in/foo.cc:15:9: error: 'dis' was not declared in this scope
memset(dis, 0x3f, sizeof(dis));
^~~
/in/foo.cc: In function 'void dijkstra(int)':
/in/foo.cc:19:9: error: 'vis' was not declared in this scope
memset(vis, 0, sizeof(vis));
^~~
/in/foo.cc:21:2: error: 'dis' was not declared in this scope
dis[cur] = 0;
^~~
/in/foo.cc:26:30: error: 'ma' was not declared in this scope
if (!vis[j] && dis[cur] + ma[cur][j] < dis[j]) { //未被标记且比已知的短,可更新
^~
/in/foo.cc:27:37: error: 'pre' was not declared in this scope
dis[j] = dis[cur] + ma[cur][j]; pre[j] = cur;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:50:3: error: 'ma' was not declared in this scope
ma[x][y] = z;
^~
/in/foo.cc:55:11: error: 'dis' was not declared in this scope
timea += dis[n] / 60;
^~~