park.cpp:1:2: error: stray '#' in program
1 | =#include <bits/stdc++.h>
| ^
park.cpp:1:1: error: expected unqualified-id before '=' token
1 | =#include <bits/stdc++.h>
| ^
park.cpp: In function 'double connection(int, int)':
park.cpp:15:5: error: 'vector' was not declared in this scope
15 | vector<float> dist(2010, maxn);
| ^~~~~~
park.cpp:7:15: error: expected primary-expression before 'double'
7 | #define float double
| ^~~~~~
park.cpp:15:12: note: in expansion of macro 'float'
15 | vector<float> dist(2010, maxn);
| ^~~~~
park.cpp:16:20: error: 'pair' was not declared in this scope
16 | priority_queue<pair<float, int>, vector<pair<float, int>>, greater<pair<float, int>>> pq;
| ^~~~
park.cpp:16:5: error: 'priority_queue' was not declared in this scope
16 | priority_queue<pair<float, int>, vector<pair<float, int>>, greater<pair<float, int>>> pq;
| ^~~~~~~~~~~~~~
park.cpp:7:15: error: expected primary-expression before 'double'
7 | #define float double
| ^~~~~~
park.cpp:16:25: note: in expansion of macro 'float'
16 | priority_queue<pair<float, int>, vector<pair<float, int>>, greater<pair<float, int>>> pq;
| ^~~~~
park.cpp:17:5: error: 'pq' was not declared in this scope
17 | pq.push(mp((float)0, a));
| ^~
park.cpp:3:12: error: 'make_pair' was not declared in this scope
3 | #define mp make_pair
| ^~~~~~~~~
park.cpp:17:13: note: in expansion of macro 'mp'
17 | pq.push(mp((float)0, a));
| ^~
park.cpp:7:15: error: expected primary-expression before 'double'
7 | #define float double
| ^~~~~~
park.cpp:18:10: note: in expansion of macro 'float'
18 | pair<float, int> node;
| ^~~~~
park.cpp:20:9: error: 'node' was not declared in this scope
20 | node = pq.top(); pq.pop();
| ^~~~
park.cpp:21:13: error: 'dist' was not declared in this scope
21 | if (dist[node.ss] != maxn) continue;
| ^~~~
park.cpp:22:9: error: 'dist' was not declared in this scope
22 | dist[node.ss] = node.ff;
| ^~~~
park.cpp:25:24: error: 'max' was not declared in this scope; did you mean 'maxn'?
25 | pq.push(mp(max(adjmatrix[node.ss][i], dist[node.ss]), i));
| ^~~
| maxn
park.cpp:29:12: error: 'dist' was not declared in this scope
29 | return dist[b];
| ^~~~
park.cpp: At global scope:
park.cpp:33:26: error: 'vector' has not been declared
33 | bool check(int a, int b, vector<float> wall, int r) {
| ^~~~~~
park.cpp:33:32: error: expected ',' or '...' before '<' token
33 | bool check(int a, int b, vector<float> wall, int r) {
| ^
park.cpp: In function 'bool check(int, int, int)':
park.cpp:35:9: error: 'wall' was not declared in this scope; did you mean 'll'?
35 | if (wall[a] >= 2*r && wall[b] >= 2*r) {
| ^~~~
| ll
park.cpp:35:22: error: 'r' was not declared in this scope
35 | if (wall[a] >= 2*r && wall[b] >= 2*r) {
| ^
park.cpp:36:13: error: 'abs' was not declared in this scope
36 | if (abs(a - b) == 2) {
| ^~~
park.cpp: In function 'int main()':
park.cpp:51:5: error: 'ios_base' has not been declared
51 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
park.cpp:52:5: error: 'cin' was not declared in this scope
52 | cin.tie(NULL);
| ^~~
park.cpp:52:13: error: 'NULL' was not declared in this scope
52 | cin.tie(NULL);
| ^~~~
park.cpp:1:1: note: 'NULL' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | =#include <bits/stdc++.h>
park.cpp:61:12: error: 'vector' was not declared in this scope
61 | vector<vector<int>> trees(n, vector<int>(3));
| ^~~~~~
park.cpp:61:19: error: expected primary-expression before 'int'
61 | vector<vector<int>> trees(n, vector<int>(3));
| ^~~
park.cpp:62:12: error: 'pair' was not declared in this scope
62 | vector<pair<int,int>> visitors(m);
| ^~~~
park.cpp:62:17: error: expected primary-expression before 'int'
62 | vector<pair<int,int>> visitors(m);
| ^~~
park.cpp:64:16: error: 'trees' was not declared in this scope
64 | cin >> trees[i][0] >> trees[i][1] >> trees[i][2];
| ^~~~~
park.cpp:67:16: error: 'visitors' was not declared in this scope
67 | cin >> visitors[i].ff >> visitors[i].ss;
| ^~~~~~~~
park.cpp:74:40: error: 'trees' was not declared in this scope
74 | adjmatrix[i][j] = sqrt(pow(trees[i][0] - trees[j][0], 2) + pow(trees[i][1] - trees[j][1], 2)) - trees[i][2] - trees[j][2];
| ^~~~~
park.cpp:74:36: error: 'pow' was not declared in this scope
74 | adjmatrix[i][j] = sqrt(pow(trees[i][0] - trees[j][0], 2) + pow(trees[i][1] - trees[j][1], 2)) - trees[i][2] - trees[j][2];
| ^~~
park.cpp:74:31: error: 'sqrt' was not declared in this scope
74 | adjmatrix[i][j] = sqrt(pow(trees[i][0] - trees[j][0], 2) + pow(trees[i][1] - trees[j][1], 2)) - trees[i][2] - trees[j][2];
| ^~~~
park.cpp:78:31: error: 'trees' was not declared in this scope
78 | adjmatrix[i][n] = h - trees[i][1] - trees[i][2];
| ^~~~~
park.cpp:7:15: error: expected primary-expression before 'double'
7 | #define float double
| ^~~~~~
park.cpp:96:12: note: in expansion of macro 'float'
96 | vector<float> wall(7);
| ^~~~~
park.cpp:100:5: error: 'wall' was not declared in this scope; did you mean 'll'?
100 | wall[1] = sw; wall[2] = es; wall[3] = ne; wall[4] = wn; wall[5] = ns; wall[6] = we;
| ^~~~
| ll
park.cpp:110:23: error: 'visitors' was not declared in this scope
110 | if (check(visitors[i].ss, j, wall, visitors[i].ff)) cout << j;
| ^~~~~~~~
park.cpp:110:65: error: 'cout' was not declared in this scope
110 | if (check(visitors[i].ss, j, wall, visitors[i].ff)) cout << j;
| ^~~~
park.cpp:112:9: error: 'cout' was not declared in this scope
112 | cout << '\n';
| ^~~~