/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:4: error: stray '#' in program
  2 #include <iostream>
    ^
/in/foo.cc:3:4: error: stray '#' in program
  3 #include <cstdlib>
    ^
/in/foo.cc:4:4: error: stray '#' in program
  4 #include <cstring>
    ^
/in/foo.cc:5:4: error: stray '#' in program
  5 #include <cstdio>
    ^
/in/foo.cc:6:4: error: stray '#' in program
  6 #include <cmath>
    ^
/in/foo.cc:7:4: error: stray '#' in program
  7 #include <algorithm>
    ^
/in/foo.cc:8:4: error: stray '#' in program
  8 #include <ctime>
    ^
/in/foo.cc:9:4: error: stray '#' in program
  9 #include <vector>
    ^
/in/foo.cc:10:4: error: stray '#' in program
 10 #include <queue>
    ^
/in/foo.cc:11:4: error: stray '#' in program
 11 #include <map>
    ^
/in/foo.cc:12:4: error: stray '#' in program
 12 #include <set>
    ^
/in/foo.cc:13:4: error: stray '#' in program
 13 #include <string>
    ^
/in/foo.cc:2:2: error: expected unqualified-id before numeric constant
  2 #include <iostream>
  ^
/in/foo.cc:15:1: error: expected unqualified-id before numeric constant
 15 typedef long long LL;
 ^~
/in/foo.cc:16:1: error: expected unqualified-id before numeric constant
 16 const int MAXN = 300011;
 ^~
/in/foo.cc:17:1: error: expected unqualified-id before numeric constant
 17 const int MAXM = 600011; 
 ^~
/in/foo.cc:18:1: error: expected unqualified-id before numeric constant
 18 int n,m,ecnt,first[MAXN],next[MAXM],to[MAXM],f[MAXN][20],deep[MAXN],ans[MAXN],val[MAXN],tong[MAXN],MAXD,w[MAXN],num[1000011];
 ^~
/in/foo.cc:19:1: error: expected unqualified-id before numeric constant
 19 int head[MAXN],tt[MAXM],nn[MAXM],father[MAXN],vis[MAXN];
 ^~
/in/foo.cc:20:1: error: expected unqualified-id before numeric constant
 20 vector<int>ljh[MAXN],ljh2[MAXN],ljh3[MAXN];
 ^~
/in/foo.cc:21:1: error: expected unqualified-id before numeric constant
 21 struct node{ int s,t,lca,len;}a[MAXN];
 ^~
/in/foo.cc:21:34: error: 'a' does not name a type
 21 struct node{ int s,t,lca,len;}a[MAXN];
                                  ^
/in/foo.cc:22:1: error: expected unqualified-id before numeric constant
 22 inline int getint(){
 ^~
/in/foo.cc:26:1: error: expected unqualified-id before numeric constant
 26 inline void link(int x,int y){ next[++ecnt]=first[x]; first[x]=ecnt; to[ecnt]=y; }
 ^~
/in/foo.cc:27:1: error: expected unqualified-id before numeric constant
 27 inline void LINK(int x,int y){ nn[++ecnt]=head[x]; head[x]=ecnt; tt[ecnt]=y; }
 ^~
/in/foo.cc:28:1: error: expected unqualified-id before numeric constant
 28 inline int find(int x){ if(father[x]!=x) father[x]=find(father[x]); return father[x]; }
 ^~
/in/foo.cc:29:1: error: expected unqualified-id before numeric constant
 29 inline void init(int x,int fa){ 
 ^~

信息

递交者
类型
递交
题目
P2004 天天爱跑步
语言
C++
递交时间
2017-05-19 16:46:50
评测时间
2017-05-19 16:46:50
评测机
分数
0
总耗时
15ms
峰值内存
2.793 MiB