0_0_18229107_2003.cpp:2:13: error: 'MAXN' was not declared in this scope
int n,m,dis[MAXN];
^
0_0_18229107_2003.cpp:3:1: error: 'set' does not name a type
set<int> all,mp[MAXN],tmp;
^
0_0_18229107_2003.cpp:4:1: error: 'queue' does not name a type
queue<int> q;
^
0_0_18229107_2003.cpp: In function 'int main()':
0_0_18229107_2003.cpp:14:13: error: 'all' was not declared in this scope
all.insert(i); //先把所有顶点加入
^
0_0_18229107_2003.cpp:15:13: error: 'mp' was not declared in this scope
mp[i].clear();
^
0_0_18229107_2003.cpp:17:16: error: 'dis' was not declared in this scope
memset(dis,-1,sizeof(dis));
^
0_0_18229107_2003.cpp:17:34: error: 'memset' was not declared in this scope
memset(dis,-1,sizeof(dis));
^
0_0_18229107_2003.cpp:22:13: error: 'mp' was not declared in this scope
mp[u].insert(v);
^
0_0_18229107_2003.cpp:26:9: error: 'q' was not declared in this scope
q.push(s);
^
0_0_18229107_2003.cpp:28:9: error: 'all' was not declared in this scope
all.erase(s);
^
0_0_18229107_2003.cpp:31:13: error: 'tmp' was not declared in this scope
tmp.clear();
^
0_0_18229107_2003.cpp:34:13: error: 'set' was not declared in this scope
set<int>::iterator v=all.begin();
^
0_0_18229107_2003.cpp:34:17: error: expected primary-expression before 'int'
set<int>::iterator v=all.begin();
^
0_0_18229107_2003.cpp:37:20: error: 'mp' was not declared in this scope
if(mp[u].find(*v)==mp[u].end()) //不在原图中的边说明补图中可以到达
^
0_0_18229107_2003.cpp:37:32: error: invalid type argument of unary '*' (have 'int')
if(mp[u].find(*v)==mp[u].end()) //不在原图中的边说明补图中可以到达
^
0_0_18229107_2003.cpp:39:26: error: invalid type argument of unary '*' (have 'int')
dis[*v]=dis[u]+1;
^
0_0_18229107_2003.cpp:40:33: error: invalid type argument of unary '*' (have 'int')
tmp.insert(*v); //这些点下次就不用考虑
^
0_0_18229107_2003.cpp:41:29: error: invalid type argument of unary '*' (have 'int')
q.push(*v); //以当前距离为起点(第一次距离为1),寻找距离+1的点
^
0_0_18229107_2003.cpp:45:28: error: invalid type argument of unary '*' (have 'int')
all.erase(*v);
^
0_0_18229107_2003.cpp:54:39: error: 'elseprintf' was not declared in this scope
elseprintf("%d",dis[i]);
^
0_0_18229107_2003.cpp:60:5: error: 'return0' was not declared in this scope
return0;
^
|