Borderou de evaluare (job #747136)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | GPS | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 nov. 2023 18:13:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
main.cpp:15:1: error: 'ifstream' does not name a type
15 | ifstream f("gps.in");
| ^~~~~~~~
main.cpp:16:1: error: 'ofstream' does not name a type
16 | ofstream g("gps.out");
| ^~~~~~~~
main.cpp:35:1: error: 'vector' does not name a type
35 | vector <int> ys;
| ^~~~~~
main.cpp:36:1: error: 'vector' does not name a type
36 | vector <Punct> puncte;
| ^~~~~~
main.cpp: In function 'void ReadInput()':
main.cpp:47:5: error: 'f' was not declared in this scope
47 | f >> N;
| ^
main.cpp:53:9: error: 'puncte' was not declared in this scope; did you mean 'Punct'?
53 | puncte.push_back({x, y});
| ^~~~~~
| Punct
main.cpp:54:9: error: 'ys' was not declared in this scope; did you mean 'y'?
54 | ys.push_back(y);
| ^~
| y
main.cpp: In function 'void Solution()':
main.cpp:107:10: error: 'ys' was not declared in this scope
107 | sort(ys.begin(), ys.end());
| ^~
main.cpp:107:5: error: 'sort' was not declared in this scope; did you mean 'short'?
107 | sort(ys.begin(), ys.end());
| ^~~~
| short
main.cpp:108:10: error: 'puncte' was not declared in this scope; did you mean 'Punct'?
108 | sort(puncte.begin(), puncte.end());
| ^~~~~~
| Punct
main.cpp:113:15: error: 'lower_bound' was not declared in this scope
113 | p.y = lower_bound(ys.begin(), ys.end(), p.y) - ys.begin() + 1;
| ^~~~~~~~~~~
main.cpp:124:9: error: 'memset' was not declared in this scope
124 | memset(aib, 0, sizeof(aib));
| ^~~~~~
main.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | include <bits/stdc++.h>
main.cpp:129:30: error: 'swap' was not declared in this scope
129 | if (minY > maxY) swap(minY, maxY);