Borderou de evaluare (job #2900350)
Utilizator | Data | 10 mai 2022 19:20:54 | |
---|---|---|---|
Problema | Ghicit | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:17:3: error: 'vector' was not declared in this scope
17 | vector<pair<char, int>> init;
| ^~~~~~
main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | #include <algorithm>
+++ |+#include <vector>
3 |
main.cpp:17:24: error: expected primary-expression before '>' token
17 | vector<pair<char, int>> init;
| ^~
main.cpp:17:27: error: 'init' was not declared in this scope; did you mean 'int'?
17 | vector<pair<char, int>> init;
| ^~~~
| int
main.cpp:18:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int i = 0; i < s.size(); ++i)
| ~~^~~~~~~~~~
main.cpp:30:36: error: expected primary-expression before '>' token
30 | vector<pair<pair<int, int>, int>> v;
| ^~
main.cpp:30:39: error: 'v' was not declared in this scope
30 | vector<pair<pair<int, int>, int>> v;
| ^
main.cpp:31:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int i = 0; i < s.size(); ++i)
| ~~^~~~~~~~~~
main.cpp:32:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | if (i + (1 << (j - 1)) < s.size())
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp:46:23: error: expected primary-expression before '>' token
46 | vector<pair<int, int>> v;
| ^~
main.cpp:46:26: error: 'v' was not declared in this scope
46 | vector<pair<int, int>> v;
| ^
main.cpp:47:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for (int i = 0; i < s.size(); ++i)
| ~~^~~~~~~~~~
main.cpp:51:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for (int i = 1; i < s.size(); ++i) {
| ~~^~~~~~~~~~
main.cpp:54:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | while (pas >= 0 && a < s.size() && b < s.size()) {
| ~~^~~~~~~~~~
main.cpp:54:40: error: 'b' was not declared in this scope
54 | while (pas >= 0 && a < s.size() && b < s.size()) {
| ^
main.cpp:59:76: error: 'b' was not declared in this scope
59 | tot -= min(min((int)s.size(), a) - v[i - 1].second, min((int)s.size(), b) - v[i].second);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !