Borderou de evaluare (job #2947118)
Utilizator | Data | 25 noiembrie 2022 18:43:18 | |
---|---|---|---|
Problema | Piezisa | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Ghober::reset()':
main.cpp:29:13: error: 'undo' was not declared in this scope
29 | undo();
| ^~~~
main.cpp: In function 'void Ghober::scoate(bool)':
main.cpp:35:25: error: request for member 'find' in 'Ghober::capete[((int)cap)]', which is of non-class type 'int [2]'
35 | if (capete[cap].find(v[val]) != capete[cap].end())
| ^~~~
main.cpp:35:53: error: request for member 'end' in 'Ghober::capete[((int)cap)]', which is of non-class type 'int [2]'
35 | if (capete[cap].find(v[val]) != capete[cap].end())
| ^~~
main.cpp:41:26: error: request for member 'find' in 'Ghober::capete[((int)(! cap))]', which is of non-class type 'int [2]'
41 | if (capete[!cap].find(v[val]) != capete[!cap].end())
| ^~~~
main.cpp:41:55: error: request for member 'end' in 'Ghober::capete[((int)(! cap))]', which is of non-class type 'int [2]'
41 | if (capete[!cap].find(v[val]) != capete[!cap].end())
| ^~~
main.cpp: In function 'void Ghober::undo()':
main.cpp:50:23: error: request for member 'erase' in 'Ghober::capete[0]', which is of non-class type 'int [2]'
50 | capete[0].erase(v[st - 1]);
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:74:5: error: 'map' was not declared in this scope
74 | map < int, int > m
| ^~~
main.cpp:5:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
4 | #include <unordered_map>
+++ |+#include <map>
5 |
main.cpp:74:11: error: expected primary-expression before 'int'
74 | map < int, int > m
| ^~~
main.cpp:75:21: error: 'i' was not declared in this scope
75 | for (int i = 1; i <= n; ++i)
| ^
main.cpp:78:20: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
78 | for (auto &i : m)
| ^
| std::begin
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/c++/10/bits/range_access.h:108:37: note: 'std::begin' declared here
108 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
| ^~~~~
main.cpp:78:20: error: 'end' was not declared in this scope; did you mean 'std::end'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !