/ Vijos /

记录详情

Compile Error

foo.cpp:62:2: error: stray '#' in program
 }#include<cstdio>
  ^
foo.cpp:62:3: error: 'include' does not name a type
 }#include<cstdio>
   ^
foo.cpp:68:8: error: redefinition of 'struct Pointnode'
 struct Pointnode
        ^
foo.cpp:7:8: error: previous definition of 'struct Pointnode'
 struct Pointnode
        ^
foo.cpp:75:14: error: invalid type in declaration before ';' token
 }Point[15000];
              ^
foo.cpp:75:14: error: conflicting declaration 'int Point [15000]'
foo.cpp:14:2: error: 'Point' has a previous declaration as 'Pointnode Point [15000]'
 }Point[15000];
  ^
foo.cpp:77:5: error: redefinition of 'int N'
 int N,M,ans[15000],tree[32000];
     ^
foo.cpp:16:5: error: 'int N' previously declared here
 int N,M,ans[15000],tree[32000];
     ^
foo.cpp:77:7: error: redefinition of 'int M'
 int N,M,ans[15000],tree[32000];
       ^
foo.cpp:16:7: error: 'int M' previously declared here
 int N,M,ans[15000],tree[32000];
       ^
foo.cpp:77:18: error: redefinition of 'int ans [15000]'
 int N,M,ans[15000],tree[32000];
                  ^
foo.cpp:16:9: error: 'int ans [15000]' previously declared here
 int N,M,ans[15000],tree[32000];
         ^
foo.cpp:77:30: error: redefinition of 'int tree [32000]'
 int N,M,ans[15000],tree[32000];
                              ^
foo.cpp:16:20: error: 'int tree [32000]' previously declared here
 int N,M,ans[15000],tree[32000];
                    ^
foo.cpp: In function 'int lowbit(int)':
foo.cpp:79:12: error: redefinition of 'int lowbit(int)'
 inline int lowbit(int x)
            ^
foo.cpp:18:12: error: 'int lowbit(int)' previously defined here
 inline int lowbit(int x)
            ^
foo.cpp: In function 'void update(int, int)':
foo.cpp:84:6: error: redefinition of 'void update(int, int)'
 void update(int pos,int delta)
      ^
foo.cpp:23:6: error: 'void update(int, int)' previously defined here
 void update(int pos,int delta)
      ^
foo.cpp: In function 'int query(int)':
foo.cpp:90:5: error: redefinition of 'int query(int)'
 int query(int pos)
     ^
foo.cpp:29:5: error: 'int query(int)' previously defined here
 int query(int pos)
     ^
foo.cpp: In function 'bool cmp(Pointnode, Pointnode)':
foo.cpp:98:6: error: redefinition of 'bool cmp(Pointnode, Pointnode)'
 bool cmp(Pointnode a,Pointnode b)
      ^
foo.cpp:37:6: error: 'bool cmp(Pointnode, Pointnode)' previously defined here
 bool cmp(Pointnode a,Pointnode b)
      ^
foo.cpp: In function 'int main()':
foo.cpp:103:5: error: redefinition of 'int main()'
 int main()
     ^
foo.cpp:42:5: error: 'int main()' previously defined here
 int main()
     ^

信息

递交者
类型
递交
题目
P1066 弱弱的战壕
语言
C++
递交时间
2014-11-06 20:32:13
评测时间
2014-11-06 20:32:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes