0_0_29554975_25054.cpp:17:1: error: 'structNode' does not name a type
structNode {
^
0_0_29554975_25054.cpp:19:2: error: 'node' does not name a type
}node[MX];
^
0_0_29554975_25054.cpp:21:1: error: 'structQuery' does not name a type
structQuery {
^
0_0_29554975_25054.cpp:23:2: error: 'query' does not name a type
}query[MX];
^
0_0_29554975_25054.cpp:25:18: error: 'Node' does not name a type
bool comp1(const Node& n1, const Node& n2) {
^
0_0_29554975_25054.cpp:25:34: error: 'Node' does not name a type
bool comp1(const Node& n1, const Node& n2) {
^
0_0_29554975_25054.cpp: In function 'bool comp1(const int&, const int&)':
0_0_29554975_25054.cpp:26:15: error: request for member 'c' in 'n1', which is of non-class type 'const int'
return n1.c < n2.c;
^
0_0_29554975_25054.cpp:26:22: error: request for member 'c' in 'n2', which is of non-class type 'const int'
return n1.c < n2.c;
^
0_0_29554975_25054.cpp: At global scope:
0_0_29554975_25054.cpp:29:18: error: 'Query' does not name a type
bool comp2(const Query& q1, const Query& q2) {
^
0_0_29554975_25054.cpp:29:35: error: 'Query' does not name a type
bool comp2(const Query& q1, const Query& q2) {
^
0_0_29554975_25054.cpp: In function 'bool comp2(const int&, const int&)':
0_0_29554975_25054.cpp:30:15: error: request for member 'n' in 'q1', which is of non-class type 'const int'
return q1.n < q2.n;
^
0_0_29554975_25054.cpp:30:22: error: request for member 'n' in 'q2', which is of non-class type 'const int'
return q1.n < q2.n;
^
0_0_29554975_25054.cpp: At global scope:
0_0_29554975_25054.cpp:33:18: error: 'Query' does not name a type
bool comp3(const Query& q1, const Query& q2) {
^
0_0_29554975_25054.cpp:33:35: error: 'Query' does not name a type
bool comp3(const Query& q1, const Query& q2) {
^
0_0_29554975_25054.cpp: In function 'bool comp3(const int&, const int&)':
0_0_29554975_25054.cpp:34:15: error: request for member 'sign' in 'q1', which is of non-class type 'const int'
return q1.sign < q2.sign;
^
0_0_29554975_25054.cpp:34:25: error: request for member 'sign' in 'q2', which is of non-class type 'const int'
return q1.sign < q2.sign;
^
0_0_29554975_25054.cpp: In function 'int main()':
0_0_29554975_25054.cpp:53:34: error: 'node' was not declared in this scope
scanf("%d%d%d", &node[i].a, &node[i].b, &node[i].c);
^
0_0_29554975_25054.cpp:55:18: error: 'node' was not declared in this scope
sort(node + 1, node + m + 1, comp1);
^
0_0_29554975_25054.cpp:57:30: error: 'query' was not declared in this scope
scanf("%d", &query[i].n);
^
0_0_29554975_25054.cpp:60:18: error: 'query' was not declared in this scope
sort(query + 1, query + 1 + q, comp2);
^
|