foo.cpp:111:2: error: stray '#' in program
}#include <iostream>
^
foo.cpp: In function 'void getCover(int)':
foo.cpp:34:9: warning: unused variable 'j' [-Wunused-variable]
int i, j, x;
^
foo.cpp: At global scope:
foo.cpp:111:3: error: 'include' does not name a type
}#include <iostream>
^
foo.cpp:118:8: error: redefinition of 'struct Point'
struct Point {
^
foo.cpp:8:8: error: previous definition of 'struct Point'
struct Point {
^
foo.cpp:122:8: error: redefinition of 'struct Rect'
struct Rect {
^
foo.cpp:12:8: error: previous definition of 'struct Rect'
struct Rect {
^
foo.cpp:125:13: error: invalid type in declaration before ';' token
} rect[1010];
^
foo.cpp:125:13: error: conflicting declaration 'int rect [1010]'
foo.cpp:15:3: error: 'rect' has a previous declaration as 'Rect rect [1010]'
} rect[1010];
^
foo.cpp:131:5: error: redefinition of 'int _w'
int _w, _h;
^
foo.cpp:21:5: error: 'int _w' previously declared here
int _w, _h;
^
foo.cpp:131:9: error: redefinition of 'int _h'
int _w, _h;
^
foo.cpp:21:9: error: 'int _h' previously declared here
int _w, _h;
^
foo.cpp:132:5: error: redefinition of 'int n'
int n, m, B;
^
foo.cpp:22:5: error: 'int n' previously declared here
int n, m, B;
^
foo.cpp:132:8: error: redefinition of 'int m'
int n, m, B;
^
foo.cpp:22:8: error: 'int m' previously declared here
int n, m, B;
^
foo.cpp:132:11: error: redefinition of 'int B'
int n, m, B;
^
foo.cpp:22:11: error: 'int B' previously declared here
int n, m, B;
^
foo.cpp:133:19: error: redefinition of 'int cover [110][110]'
int cover[110][110];
^
foo.cpp:23:5: error: 'int cover [110][110]' previously declared here
int cover[110][110];
^
foo.cpp:134:14: error: redefinition of 'bool vis [1010]'
bool vis[1010];
^
foo.cpp:24:6: error: 'bool vis [1010]' previously declared here
bool vis[1010];
^
foo.cpp:135:12: error: redefinition of 'std::queue<int> Q'
queue<int> Q;
^
foo.cpp:25:12: error: 'std::queue<int> Q' previously declared here
queue<int> Q;
^
foo.cpp:136:12: error: redefinition of 'int req [110]'
int req[110];
^
foo.cpp:26:5: error: 'int req [110]' previously declared here
int req[110];
^
foo.cpp:137:20: error: redefinition of 'int _map [1010][1010]'
int _map[1010][1010];
^
foo.cpp:27:5: error: 'int _map [1010][1010]' previously declared here
int _map[1010][1010];
^
foo.cpp: In function 'int max(int, int)':
foo.cpp:140:12: error: redefinition of 'int max(int, int)'
inline int max(int x, int y) { return x > y ? x : y; }
^
foo.cpp:30:12: error: 'int max(int, int)' previously defined here
inline int max(int x, int y) { return x > y ? x : y; }
^
foo.cpp: In function 'int min(int, int)':
foo.cpp:141:12: error: redefinition of 'int min(int, int)'
inline int min(int x, int y) { return x < y ? x : y; }
^
foo.cpp:31:12: error: 'int min(int, int)' previously defined here
inline int min(int x, int y) { return x < y ? x : y; }
^
foo.cpp: In function 'void getCover(int)':
foo.cpp:143:13: error: redefinition of 'void getCover(int)'
inline void getCover(int _x) {
^
foo.cpp:33:13: error: 'void getCover(int)' previously defined here
inline void getCover(int _x) {
^
foo.cpp:144:9: warning: unused variable 'j' [-Wunused-variable]
int i, j, x;
^
foo.cpp: In function 'int main()':
foo.cpp:165:5: error: redefinition of 'int main()'
int main() {
^
foo.cpp:55:5: error: 'int main()' previously defined here
int main() {
^