0_0_16854655_1616\Main.java:1: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_16854655_1616\Main.java:1: 错误: 需要class, interface或enum
#include <stdio.h>
^
0_0_16854655_1616\Main.java:2: 错误: 非法字符: '#'
#include <string.h>
^
0_0_16854655_1616\Main.java:3: 错误: 非法字符: '#'
#include <queue>
^
0_0_16854655_1616\Main.java:6: 错误: 需要class, interface或enum
const int N = 1000000;
^
0_0_16854655_1616\Main.java:7: 错误: 需要class, interface或enum
int map[N+10];
^
0_0_16854655_1616\Main.java:8: 错误: 需要class, interface或enum
int n,k;
^
0_0_16854655_1616\Main.java:9: 错误: 需要class, interface或enum
struct node
^
0_0_16854655_1616\Main.java:12: 错误: 需要class, interface或enum
};
^
0_0_16854655_1616\Main.java:14: 错误: 需要class, interface或enum
int check(int x)
^
0_0_16854655_1616\Main.java:18: 错误: 需要class, interface或enum
return 1;
^
0_0_16854655_1616\Main.java:19: 错误: 需要class, interface或enum
}
^
0_0_16854655_1616\Main.java:24: 错误: 需要class, interface或enum
queue<node> Q;
^
0_0_16854655_1616\Main.java:25: 错误: 需要class, interface或enum
node a,next;
^
0_0_16854655_1616\Main.java:26: 错误: 需要class, interface或enum
a.x = x;
^
0_0_16854655_1616\Main.java:27: 错误: 需要class, interface或enum
a.step = 0;
^
0_0_16854655_1616\Main.java:28: 错误: 需要class, interface或enum
map[x] = 1;
^
0_0_16854655_1616\Main.java:29: 错误: 需要class, interface或enum
Q.push(a);
^
0_0_16854655_1616\Main.java:30: 错误: 需要class, interface或enum
while(!Q.empty())
^
0_0_16854655_1616\Main.java:33: 错误: 需要class, interface或enum
Q.pop();
^
0_0_16854655_1616\Main.java:34: 错误: 需要class, interface或enum
if(a.x == k)
^
0_0_16854655_1616\Main.java:36: 错误: 需要class, interface或enum
next = a;
^
0_0_16854655_1616\Main.java:38: 错误: 需要class, interface或enum
next.x = a.x+1;
^
0_0_16854655_1616\Main.java:39: 错误: 需要class, interface或enum
if(check(next.x))
^
0_0_16854655_1616\Main.java:42: 错误: 需要class, interface或enum
map[next.x] = 1;
^
0_0_16854655_1616\Main.java:43: 错误: 需要class, interface或enum
Q.push(next);
^
0_0_16854655_1616\Main.java:44: 错误: 需要class, interface或enum
}
^
0_0_16854655_1616\Main.java:46: 错误: 需要class, interface或enum
if(check(next.x))
^
0_0_16854655_1616\Main.java:49: 错误: 需要class, interface或enum
map[next.x] = 1;
^
0_0_16854655_1616\Main.java:50: 错误: 需要class, interface或enum
Q.push(next);
^
0_0_16854655_1616\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_16854655_1616\Main.java:53: 错误: 需要class, interface或enum
if(check(next.x))
^
0_0_16854655_1616\Main.java:56: 错误: 需要class, interface或enum
map[next.x] = 1;
^
0_0_16854655_1616\Main.java:57: 错误: 需要class, interface或enum
Q.push(next);
^
0_0_16854655_1616\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_16854655_1616\Main.java:61: 错误: 需要class, interface或enum
}
^
0_0_16854655_1616\Main.java:66: 错误: 需要class, interface或enum
while(~scanf("%d%d",&n,&k))
^
0_0_16854655_1616\Main.java:69: 错误: 需要class, interface或enum
ans = bfs(n);
^
0_0_16854655_1616\Main.java:70: 错误: 需要class, interface或enum
printf("%d\n",ans);
^
0_0_16854655_1616\Main.java:71: 错误: 需要class, interface或enum
}
^
0_0_16854655_1616\Main.java:73: 错误: 需要class, interface或enum
}
^
41 个错误
|