Problem lightningrod
User realemeralds
Submission Time 2024-03-15 17:24:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:18:6: error: ‘pi’ was not declared in this scope
18 | set<pi> S;
| ^~
lightningrod.cpp:18:8: error: template argument 1 is invalid
18 | set<pi> S;
| ^
lightningrod.cpp:18:8: error: template argument 2 is invalid
lightningrod.cpp:18:8: error: template argument 3 is invalid
lightningrod.cpp:19:21: error: ‘N’ was not declared in this scope
19 | for(int i = 0; i < N; i++) {
| ^
lightningrod.cpp:23:5: error: request for member ‘insert’ in ‘S’, which is of non-class type ‘int’
23 | S.insert({-(y - x), -(x + y)});
| ^~~~~~
lightningrod.cpp:27:15: error: ‘begin’ was not declared in this scope
27 | for (auto i: S) {
| ^
lightningrod.cpp:27:15: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,