F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_30307304_7976.cpp:90:8: error: redefinition of 'struct Rect'
 struct Rect {
        ^
0_0_30307304_7976.cpp:4:8: error: previous definition of 'struct Rect'
 struct Rect {
        ^
0_0_30307304_7976.cpp: In function 'bool isOverlap(const Rect&, const Rect&)':
0_0_30307304_7976.cpp:99:6: error: redefinition of 'bool isOverlap(const Rect&, const Rect&)'
 bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
      ^
0_0_30307304_7976.cpp:13:6: note: 'bool isOverlap(const Rect&, const Rect&)' previously defined here
 bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
      ^
0_0_30307304_7976.cpp: In function 'Rect Make_Rect(int, int, int, int)':
0_0_30307304_7976.cpp:110:6: error: redefinition of 'Rect Make_Rect(int, int, int, int)'
 Rect Make_Rect(int x1, int x2, int y1, int y2)
      ^
0_0_30307304_7976.cpp:24:6: note: 'Rect Make_Rect(int, int, int, int)' previously defined here
 Rect Make_Rect(int x1, int x2, int y1, int y2)
      ^
0_0_30307304_7976.cpp: In function 'int main()':
0_0_30307304_7976.cpp:115:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_30307304_7976.cpp:29:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_30307304_7976.cpp:119:19: error: 'scanf_s' was not declared in this scope
  scanf("%d", &test);
                   ^
0_0_30307304_7976.cpp: At global scope:
0_0_30307304_7976.cpp:176:8: error: redefinition of 'struct Rect'
 struct Rect {
        ^
0_0_30307304_7976.cpp:4:8: error: previous definition of 'struct Rect'
 struct Rect {
        ^
0_0_30307304_7976.cpp: In function 'bool isOverlap(const Rect&, const Rect&)':
0_0_30307304_7976.cpp:185:6: error: redefinition of 'bool isOverlap(const Rect&, const Rect&)'
 bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
      ^
0_0_30307304_7976.cpp:13:6: note: 'bool isOverlap(const Rect&, const Rect&)' previously defined here
 bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
      ^
0_0_30307304_7976.cpp: In function 'Rect Make_Rect(int, int, int, int)':
0_0_30307304_7976.cpp:196:6: error: redefinition of 'Rect Make_Rect(int, int, int, int)'
 Rect Make_Rect(int x1, int x2, int y1, int y2)
      ^
0_0_30307304_7976.cpp:24:6: note: 'Rect Make_Rect(int, int, int, int)' previously defined here
 Rect Make_Rect(int x1, int x2, int y1, int y2)
      ^
0_0_30307304_7976.cpp: In function 'int main()':
0_0_30307304_7976.cpp:201:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_30307304_7976.cpp:29:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_30307304_7976.cpp:205:19: error: 'scanf_s' was not declared in this scope
  scanf("%d", &test);
                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-30 00:27:27, Gzip enabled