/ Vijos /

记录详情

Compile Error

/in/foo.cc:208:2: error: stray '#' in program
 }#include <iostream>
  ^
/in/foo.cc:411:2: error: stray '#' in program
 }#include <iostream>
  ^
/in/foo.cc: In function 'void init()':
/in/foo.cc:112:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 link(add=(xx+yy+r)&1);
                     ^
/in/foo.cc: At global scope:
/in/foo.cc:208:3: error: 'include' does not name a type
 }#include <iostream>
   ^~~~~~~
/in/foo.cc:214:8: error: redefinition of 'struct Line'
 struct Line{
        ^~~~
/in/foo.cc:11:8: error: previous definition of 'struct Line'
 struct Line{
        ^~~~
/in/foo.cc: In function 'bool operator<(Line, Line)':
/in/foo.cc:219:6: error: redefinition of 'bool operator<(Line, Line)'
 bool operator <(Line a,Line b){
      ^~~~~~~~
/in/foo.cc:16:6: note: 'bool operator<(Line, Line)' previously defined here
 bool operator <(Line a,Line b){
      ^~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:222:8: error: redefinition of 'struct Tree'
 struct Tree{
        ^~~~
/in/foo.cc:19:8: error: previous definition of 'struct Tree'
 struct Tree{
        ^~~~
/in/foo.cc:226:8: error: redefinition of 'struct Range'
 struct Range{
        ^~~~~
/in/foo.cc:23:8: error: previous definition of 'struct Range'
 struct Range{
        ^~~~~
/in/foo.cc: In function 'bool operator<(Range, Range)':
/in/foo.cc:229:6: error: redefinition of 'bool operator<(Range, Range)'
 bool operator <(Range a,Range b){
      ^~~~~~~~
/in/foo.cc:26:6: note: 'bool operator<(Range, Range)' previously defined here
 bool operator <(Range a,Range b){
      ^~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:232:5: error: redefinition of 'int n'
 int n,m,k;
     ^
/in/foo.cc:29:5: note: 'int n' previously declared here
 int n,m,k;
     ^
/in/foo.cc:232:7: error: redefinition of 'int m'
 int n,m,k;
       ^
/in/foo.cc:29:7: note: 'int m' previously declared here
 int n,m,k;
       ^
/in/foo.cc:232:9: error: redefinition of 'int k'
 int n,m,k;
         ^
/in/foo.cc:29:9: note: 'int k' previously declared here
 int n,m,k;
         ^
/in/foo.cc:233:7: error: redefinition of 'Tree* tree'
 Tree *tree;
       ^~~~
/in/foo.cc:30:7: note: 'Tree* tree' previously declared here
 Tree *tree;
       ^~~~
/in/foo.cc:234:6: error: redefinition of 'int* y'
 int *y;
      ^
/in/foo.cc:31:6: note: 'int* y' previously declared here
 int *y;
      ^
/in/foo.cc:235:7: error: redefinition of 'Line* line'
 Line *line;
       ^~~~
/in/foo.cc:32:7: note: 'Line* line' previously declared here
 Line *line;
       ^~~~
/in/foo.cc:236:6: error: redefinition of 'int* Len'
 int *Len;
      ^~~
/in/foo.cc:33:6: note: 'int* Len' previously declared here
 int *Len;
      ^~~
/in/foo.cc:237:6: error: redefinition of 'int* num'
 int *num;
      ^~~
/in/foo.cc:34:6: note: 'int* num' previously declared here
 int *num;
      ^~~
/in/foo.cc:238:5: error: redefinition of 'int l'
 int l,r,cover;//要更新的区间 值
     ^
/in/foo.cc:35:5: note: 'int l' previously declared here
 int l,r,cover;//要更新的区间 值
     ^
/in/foo.cc:238:7: error: redefinition of 'int r'
 int l,r,cover;//要更新的区间 值
       ^
/in/foo.cc:35:7: note: 'int r' previously declared here
 int l,r,cover;//要更新的区间 值
       ^
/in/foo.cc:238:9: error: redefinition of 'int cover'
 int l,r,cover;//要更新的区间 值
         ^~~~~
/in/foo.cc:35:9: note: 'int cover' previously declared here
 int l,r,cover;//要更新的区间 值
         ^~~~~
/in/foo.cc:239:20: error: redefinition of 'Tree tree_odd [800080]'
 Tree tree_odd[2*N*4];//线段树 odd表示奇数,eve表示偶数
                    ^
/in/foo.cc:36:6: note: 'Tree tree_odd [800080]' previously declared here
 Tree tree_odd[2*N*4];//线段树 odd表示奇数,eve表示偶数
      ^~~~~~~~
/in/foo.cc:241:20: error: redefinition of 'Tree tree_eve [800080]'
 Tree tree_eve[2*N*4];
                    ^
/in/foo.cc:38:6: note: 'Tree tree_eve [800080]' previously declared here
 Tree tree_eve[2*N*4];
      ^~~~~~~~
/in/foo.cc:242:14: error: redefinition of 'int y_odd [200020]'
 int y_odd[2*N];//离散化纵坐标
              ^
/in/foo.cc:39:5: note: 'int y_odd [200020]' previously declared here
 int y_odd[2*N];//离散化纵坐标
     ^~~~~
/in/foo.cc:243:14: error: redefinition of 'int y_eve [200020]'
 int y_eve[2*N];
              ^
/in/foo.cc:40:5: note: 'int y_eve [200020]' previously declared here
 int y_eve[2*N];
     ^~~~~
/in/foo.cc:244:5: error: redefinition of 'int len_odd'
 int len_odd;//离散化后的长度
     ^~~~~~~
/in/foo.cc:41:5: note: 'int len_odd' previously declared here
 int len_odd;//离散化后的长度
     ^~~~~~~
/in/foo.cc:245:5: error: redefinition of 'int len_eve'
 int len_eve;
     ^~~~~~~
/in/foo.cc:42:5: note: 'int len_eve' previously declared here
 int len_eve;
     ^~~~~~~
/in/foo.cc:246:18: error: redefinition of 'Line line_odd [200020]'
 Line line_odd[2*N];//扫描线
                  ^
/in/foo.cc:43:6: note: 'Line line_odd [200020]' previously declared here
 Line line_odd[2*N];//扫描线
      ^~~~~~~~
/in/foo.cc:248:18: error: redefinition of 'Line line_eve [200020]'
 Line line_eve[2*N];
                  ^
/in/foo.cc:45:6: note: 'Line line_eve [200020]' previously declared here
 Line line_eve[2*N];
      ^~~~~~~~
/in/foo.cc:249:5: error: redefinition of 'int num_odd'
 int num_odd=-1;//扫描线的个数 从0开始存
     ^~~~~~~
/in/foo.cc:46:5: note: 'int num_odd' previously defined here
 int num_odd=-1;//扫描线的个数 从0开始存
     ^~~~~~~
/in/foo.cc:250:5: error: redefinition of 'int num_eve'
 int num_eve=-1;
     ^~~~~~~
/in/foo.cc:47:5: note: 'int num_eve' previously defined here
 int num_eve=-1;
     ^~~~~~~
/in/foo.cc:251:15: error: redefinition of 'Range tra [4][100010]'
 Range tra[4][N];
               ^
/in/foo.cc:48:7: note: 'Range tra [4][100010]' previously declared here
 Range tra[4][N];
       ^~~
/in/foo.cc:252:8: error: redefinition of 'int d [4]'
 int d[4]={-1,-1,-1,-1};
        ^
/in/foo.cc:49:5: note: 'int d [4]' previously defined here
 int d[4]={-1,-1,-1,-1};
     ^
/in/foo.cc:253:8: error: redefinition of 'ull s [4]'
 ull s[4];
        ^
/in/foo.cc:50:5: note: 'ull s [4]' previously declared here
 ull s[4];
     ^
/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:254:13: error: redefinition of 'void read(int&)'
 inline void read(int& x){ //读入优化
             ^~~~
/in/foo.cc:51:13: note: 'void read(int&)' previously defined here
 inline void read(int& x){ //读入优化
             ^~~~
/in/foo.cc: In function 'void link(bool)':
/in/foo.cc:266:13: error: redefinition of 'void link(bool)'
 inline void link(bool flag){//~链接
             ^~~~
/in/foo.cc:63:13: note: 'void link(bool)' previously defined here
 inline void link(bool flag){//~链接
             ^~~~
/in/foo.cc: In function 'int find(int)':
/in/foo.cc:282:5: error: redefinition of 'int find(int)'
 int find(int x){
     ^~~~
/in/foo.cc:79:5: note: 'int find(int)' previously defined here
 int find(int x){
     ^~~~
/in/foo.cc: In function 'void init()':
/in/foo.cc:293:6: error: redefinition of 'void init()'
 void init(){
      ^~~~
/in/foo.cc:90:6: note: 'void init()' previously defined here
 void init(){
      ^~~~
/in/foo.cc:315:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 link(add=(xx+yy+r)&1);
                     ^
/in/foo.cc: In function 'void push(int, int, int)':
/in/foo.cc:343:13: error: redefinition of 'void push(int, int, int)'
 inline void push(int root,int left,int right){
             ^~~~
/in/foo.cc:140:13: note: 'void push(int, int, int)' previously defined here
 inline void push(int root,int left,int right){
             ^~~~
/in/foo.cc: In function 'void update(int, int, int)':
/in/foo.cc:351:6: error: redefinition of 'void update(int, int, int)'
 void update(int root,int left,int right){
      ^~~~~~
/in/foo.cc:148:6: note: 'void update(int, int, int)' previously defined here
 void update(int root,int left,int right){
      ^~~~~~
/in/foo.cc: In function 'ull Pow(ull)':
/in/foo.cc:364:5: error: redefinition of 'ull Pow(ull)'
 ull Pow(ull x){
     ^~~
/in/foo.cc:161:5: note: 'ull Pow(ull)' previously defined her

信息

递交者
类型
递交
题目
P1231 棋盘上的士兵
语言
C++
递交时间
2018-02-09 20:21:29
评测时间
2018-02-09 20:21:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes