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);
^
|