0_0_18868202_25031.cpp:3:1: error: 'vector' does not name a type
vector<int> ss[128];
^
0_0_18868202_25031.cpp:6:1: error: 'vector' does not name a type
vector<int> G[50001];
^
0_0_18868202_25031.cpp: In function 'unsigned int dfs(int, int)':
0_0_18868202_25031.cpp:15:7: error: 'vector' was not declared in this scope
for (vector<int>::iterator it = G[u].begin();
^
0_0_18868202_25031.cpp:15:14: error: expected primary-expression before 'int'
for (vector<int>::iterator it = G[u].begin();
^
0_0_18868202_25031.cpp:16:3: error: 'it' was not declared in this scope
it != G[u].end(); it++) {
^
0_0_18868202_25031.cpp:16:9: error: 'G' was not declared in this scope
it != G[u].end(); it++) {
^
0_0_18868202_25031.cpp:22:30: error: 'memset' was not declared in this scope
memset(f[u], 0, sizeof(f[u]));
^
0_0_18868202_25031.cpp:25:7: error: 'vector' was not declared in this scope
for (vector<int>::iterator it = G[u].begin();
^
0_0_18868202_25031.cpp:25:14: error: expected primary-expression before 'int'
for (vector<int>::iterator it = G[u].begin();
^
0_0_18868202_25031.cpp:26:3: error: 'it' was not declared in this scope
it != G[u].end(); it++) {
^
0_0_18868202_25031.cpp:26:9: error: 'G' was not declared in this scope
it != G[u].end(); it++) {
^
0_0_18868202_25031.cpp:30:16: error: expected primary-expression before 'int'
for (vector<int>::iterator it1 = ss[j].begin();
^
0_0_18868202_25031.cpp:31:5: error: 'it1' was not declared in this scope
it1 != ss[j].end(); it1++) {
^
0_0_18868202_25031.cpp:31:12: error: 'ss' was not declared in this scope
it1 != ss[j].end(); it1++) {
^
0_0_18868202_25031.cpp: In function 'int main()':
0_0_18868202_25031.cpp:48:33: error: 'malloc' was not declared in this scope
char *p = (char*)malloc(size) + size;
^
0_0_18868202_25031.cpp:51:29: error: 'scanf' was not declared in this scope
while (scanf("%d%d", &n, &k)==2) {
^
0_0_18868202_25031.cpp:53:4: error: 'ss' was not declared in this scope
ss[i].clear();
^
0_0_18868202_25031.cpp:57:6: error: 'ss' was not declared in this scope
ss[i^((1<<k)-1)].push_back(j);
^
0_0_18868202_25031.cpp:59:4: error: 'G' was not declared in this scope
G[i].clear();
^
0_0_18868202_25031.cpp:66:4: error: 'G' was not declared in this scope
G[u].push_back(v);
^
0_0_18868202_25031.cpp:69:51: error: 'printf' was not declared in this scope
if (k==1) printf("%u\n", (unsigned)n*(unsigned)n);
^
0_0_18868202_25031.cpp:70:35: error: 'printf' was not declared in this scope
else printf("%u\n", dfs(1, 0)*2u);
^
|