/ XMU_ACM /

记录详情

Compile Error

/in/foo.cc: In function 'void solve()':
/in/foo.cc:37:17: error: redeclaration of 'int a'
             int a = p[i].x - r,b = p[i].y + l,c = p[j].x - r,d = p[j].y + l;
                 ^
/in/foo.cc:35:17: note: 'int a' previously declared here
             int a = p[i].x + r,b = p[i].y - l,c = p[j].x + r,d = p[j].y - l;
                 ^
/in/foo.cc:37:32: error: redeclaration of 'int b'
             int a = p[i].x - r,b = p[i].y + l,c = p[j].x - r,d = p[j].y + l;
                                ^
/in/foo.cc:35:32: note: 'int b' previously declared here
             int a = p[i].x + r,b = p[i].y - l,c = p[j].x + r,d = p[j].y - l;
                                ^
/in/foo.cc:37:47: error: redeclaration of 'int c'
             int a = p[i].x - r,b = p[i].y + l,c = p[j].x - r,d = p[j].y + l;
                                               ^
/in/foo.cc:35:47: note: 'int c' previously declared here
             int a = p[i].x + r,b = p[i].y - l,c = p[j].x + r,d = p[j].y - l;
                                               ^
/in/foo.cc:37:62: error: redeclaration of 'int d'
             int a = p[i].x - r,b = p[i].y + l,c = p[j].x - r,d = p[j].y + l;
                                                              ^
/in/foo.cc:35:62: note: 'int d' previously declared here
             int a = p[i].x + r,b = p[i].y - l,c = p[j].x + r,d = p[j].y - l;
                                                              ^

信息

递交者
类型
自测
题目
P1066 多边形
语言
C++
递交时间
2020-12-20 16:21:01
评测时间
2020-12-20 16:21:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes