0_0_20957044_29957.cpp:5:18: error: '#' is not followed by a macro parameter
#define FOR(i,a,b) for(int i=a;i<=b;++i)
^
0_0_20957044_29957.cpp:9:18: error: stray '#' in program
const int mm=1e6+9;
^
0_0_20957044_29957.cpp:38:61: error: stray '#' in program
e[edge].v=v;e[edge].w=w;e[edge].next=head[u];head[u]=edge++;
^
0_0_20957044_29957.cpp:38:66: error: stray '#' in program
e[edge].v=v;e[edge].w=w;e[edge].next=head[u];head[u]=edge++;
^
0_0_20957044_29957.cpp:53:33: error: stray '#' in program
if(!vis[v]&&dis[v]>dis[u]+e[i].w)
^
0_0_20957044_29957.cpp:55:23: error: stray '#' in program
dis[v]=dis[u]+e[i].w;
^
0_0_20957044_29957.cpp:70:28: error: stray '#' in program
int sss=n*m*4,ttt=n*m*4+1;
^
0_0_20957044_29957.cpp:75:22: error: stray '#' in program
{ a=ttt;b=i*m*4+j*4+1;
^
0_0_20957044_29957.cpp:75:30: error: stray '#' in program
{ a=ttt;b=i*m*4+j*4+1;
^
0_0_20957044_29957.cpp:80:20: error: stray '#' in program
a=(i-1)*m*4+j*4+3; b=sss;
^
0_0_20957044_29957.cpp:80:28: error: stray '#' in program
a=(i-1)*m*4+j*4+3; b=sss;
^
0_0_20957044_29957.cpp:85:16: error: stray '#' in program
a=i*m*4+j*4+1;b=(i-1)*m*4+j*4+3;
^
0_0_20957044_29957.cpp:85:24: error: stray '#' in program
a=i*m*4+j*4+1;b=(i-1)*m*4+j*4+3;
^
0_0_20957044_29957.cpp:85:42: error: stray '#' in program
a=i*m*4+j*4+1;b=(i-1)*m*4+j*4+3;
^
0_0_20957044_29957.cpp:85:50: error: stray '#' in program
a=i*m*4+j*4+1;b=(i-1)*m*4+j*4+3;
^
0_0_20957044_29957.cpp:93:22: error: stray '#' in program
a=sss;b=i*m*4+j*4;
^
0_0_20957044_29957.cpp:98:16: error: stray '#' in program
a=i*m*4+(j-1)*4+2;
^
0_0_20957044_29957.cpp:98:28: error: stray '#' in program
a=i*m*4+(j-1)*4+2;
^
0_0_20957044_29957.cpp:104:16: error: stray '#' in program
a=i*m*4+(j-1)*4+2;b=i*m*4+j*4;
^
0_0_20957044_29957.cpp:104:28: error: stray '#' in program
a=i*m*4+(j-1)*4+2;b=i*m*4+j*4;
^
0_0_20957044_29957.cpp:104:42: error: stray '#' in program
a=i*m*4+(j-1)*4+2;b=i*m*4+j*4;
^
0_0_20957044_29957.cpp:112:16: error: stray '#' in program
a=i*m*4+j*4+l;b=i*m*4+j*4+l+1;
^
0_0_20957044_29957.cpp:112:24: error: stray '#' in program
a=i*m*4+j*4+l;b=i*m*4+j*4+l+1;
^
0_0_20957044_29957.cpp:112:38: error: stray '#' in program
a=i*m*4+j*4+l;b=i*m*4+j*4+l+1;
^
0_0_20957044_29957.cpp:112:46: error: stray '#' in program
a=i*m*4+j*4+l;b=i*m*4+j*4+l+1;
^
0_0_20957044_29957.cpp:112:52: error: stray '#' in program
a=i*m*4+j*4+l;b=i*m*4+j*4+l+1;
^
0_0_20957044_29957.cpp:117:16: error: stray '#' in program
a=i*m*4+j*4+(4-l)%4;
^
0_0_20957044_29957.cpp:117:24: error: stray '#' in program
a=i*m*4+j*4+(4-l)%4;
^
0_0_20957044_29957.cpp:118:16: error: stray '#' in program
b=i*m*4+j*4+3-l;
^
0_0_20957044_29957.cpp:118:24: error: stray '#' in program
b=i*m*4+j*4+3-l;
^
0_0_20957044_29957.cpp:126:46: error: stray '#' in program
printf("%I64d\n",sf.dijstra(sss,ttt,n*m*4+1));
^
0_0_20957044_29957.cpp:9:19: error: invalid operands of types 'double' and 'int' to binary 'operator&'
const int mm=1e6+9;
^
0_0_20957044_29957.cpp:9:22: error: expected unqualified-id before numeric constant
const int mm=1e6+9;
^
0_0_20957044_29957.cpp:31:13: error: size of array 'head' is not an integral constant-expression
int head[mm],edge;Edge e[mm*4];
^
0_0_20957044_29957.cpp:40:13: error: size of array 'vis' is not an integral constant-expression
bool vis[mm];int id[mm];LL dis[mm];
^
0_0_20957044_29957.cpp:40:24: error: size of array 'id' is not an integral constant-expression
bool vis[mm];int id[mm];LL dis[mm];
^
0_0_20957044_29957.cpp:40:35: error: size of array 'dis' is not an integral constant-expression
bool vis[mm];int id[mm];LL dis[mm];
^
0_0_20957044_29957.cpp: In member function 'void ShortPath::add(int, int, long long int)':
0_0_20957044_29957.cpp:38:3: error: 'e' was not declared in this scope
e[edge].v=v;e[edge].w=w;e[edge].next=head[u];head[u]=edge++;
^
0_0_20957044_29957.cpp:38:67: error: lvalue required as unary '&' operand
e[edge].v=v;e[edge].w=w;e[edge].next=head[u];head[u]=edge++;
^
0_0_20957044_29957.cpp: In member function 'long long int ShortPath::dijstra(int, int, int)':
0_0_20957044_29957.cpp:45:8: error: 'i' was not declared in this scope
FOR(i,0,n)dis[i]=oo,vis[i]=0;
^
0_0_20957044_29957.cpp:45:13: error: 'FOR' was not declared in this scope
FOR(i,0,n)dis[i]=oo,vis[i]=0;
^
0_0_20957044_29957.cpp:51:28: error: 'e' was not declared in this scope
for(int i=head[u];~i;i=e[i].next)
^
0_0_20957044_29957.cpp:53:36: error: expected ')' before ';' token
if(!vis[v]&&dis[v]>dis[u]+e[i].w)
^
0_0_20957044_29957.cpp: In function 'int main()':
0_0_20957044_29957.cpp:71:8: error: 'i' was not declared in this scope
FOR(i,0,n)FOR(j,0,m-1)
^
0_0_20957044_29957.cpp:71:13: error: 'FOR' was not declared in this scope
FOR(i,0,n)FOR(j,0,m-1)
^
0_0_20957044_29957.cpp:126:49: error: expected ')' before ';' token
printf("%I64d\n",sf.dijstra(sss,ttt,n*m*4+1));
^
0_0_20957044_29957.cpp:126:51: error: expected ';' before ')' token
printf("%I64d\n",sf.dijstra(sss,ttt,n*m*4+1));
^
|