0_0_30307300_28212.cpp: In function 'int main()':
0_0_30307300_28212.cpp:34:19: error: 'scanf_s' was not declared in this scope
scanf("%d", &test);
^
0_0_30307300_28212.cpp: At global scope:
0_0_30307300_28212.cpp:91:8: error: redefinition of 'struct Rect'
struct Rect {
^
0_0_30307300_28212.cpp:5:8: error: previous definition of 'struct Rect'
struct Rect {
^
0_0_30307300_28212.cpp: In function 'bool isOverlap(const Rect&, const Rect&)':
0_0_30307300_28212.cpp:100:6: error: redefinition of 'bool isOverlap(const Rect&, const Rect&)'
bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
^
0_0_30307300_28212.cpp:14:6: note: 'bool isOverlap(const Rect&, const Rect&)' previously defined here
bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
^
0_0_30307300_28212.cpp: In function 'Rect Make_Rect(int, int, int, int)':
0_0_30307300_28212.cpp:111:6: error: redefinition of 'Rect Make_Rect(int, int, int, int)'
Rect Make_Rect(int x1, int x2, int y1, int y2)
^
0_0_30307300_28212.cpp:25: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_30307300_28212.cpp: In function 'int main()':
0_0_30307300_28212.cpp:116:5: error: redefinition of 'int main()'
int main()
^
0_0_30307300_28212.cpp:30:5: note: 'int main()' previously defined here
int main()
^
0_0_30307300_28212.cpp:120:19: error: 'scanf_s' was not declared in this scope
scanf("%d", &test);
^
0_0_30307300_28212.cpp: At global scope:
0_0_30307300_28212.cpp:177:8: error: redefinition of 'struct Rect'
struct Rect {
^
0_0_30307300_28212.cpp:5:8: error: previous definition of 'struct Rect'
struct Rect {
^
0_0_30307300_28212.cpp: In function 'bool isOverlap(const Rect&, const Rect&)':
0_0_30307300_28212.cpp:186:6: error: redefinition of 'bool isOverlap(const Rect&, const Rect&)'
bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
^
0_0_30307300_28212.cpp:14:6: note: 'bool isOverlap(const Rect&, const Rect&)' previously defined here
bool isOverlap(const Rect &rc1, const Rect &rc2) //判断有没有重叠部分
^
0_0_30307300_28212.cpp: In function 'Rect Make_Rect(int, int, int, int)':
0_0_30307300_28212.cpp:197:6: error: redefinition of 'Rect Make_Rect(int, int, int, int)'
Rect Make_Rect(int x1, int x2, int y1, int y2)
^
0_0_30307300_28212.cpp:25: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_30307300_28212.cpp: In function 'int main()':
0_0_30307300_28212.cpp:202:5: error: redefinition of 'int main()'
int main()
^
0_0_30307300_28212.cpp:30:5: note: 'int main()' previously defined here
int main()
^
0_0_30307300_28212.cpp:206:19: error: 'scanf_s' was not declared in this scope
scanf("%d", &test);
^
|