Borderou de evaluare (job #3296624)
Utilizator | Data | 14 mai 2025 17:51:52 | |
---|---|---|---|
Problema | Factorial | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/12.2.1/unordered_map:42,
from main.cpp:65:
/usr/include/c++/12.2.1/ext/aligned_buffer.h:40:1: error: expected unqualified-id before 'namespace'
40 | namespace __gnu_cxx
| ^~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/hashtable_policy.h:34,
from /usr/include/c++/12.2.1/bits/hashtable.h:35,
from /usr/include/c++/12.2.1/unordered_map:46:
/usr/include/c++/12.2.1/tuple:47:1: error: expected unqualified-id before 'namespace'
47 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/hashtable_policy.h:40:1: error: expected unqualified-id before 'namespace'
40 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/hashtable.h:36:
/usr/include/c++/12.2.1/bits/enable_special_members.h:37:1: error: expected unqualified-id before 'namespace'
37 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/hashtable.h:38:
/usr/include/c++/12.2.1/bits/node_handle.h:43:1: error: expected unqualified-id before 'namespace'
43 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
/usr/include/c++/12.2.1/bits/hashtable.h:43:1: error: expected unqualified-id before 'namespace'
43 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
In file included from /usr/include/c++/12.2.1/unordered_map:47:
/usr/include/c++/12.2.1/bits/unordered_map.h:33:1: error: expected unqualified-id before 'namespace'
33 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
In file included from /usr/include/c++/12.2.1/unordered_map:49:
/usr/include/c++/12.2.1/bits/erase_if.h:39:1: error: expected unqualified-id before 'namespace'
39 | namespace std
| ^~~~~~~~~
/usr/include/c++/12.2.1/unordered_map:56:1: error: expected unqualified-id before 'namespace'
56 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
/usr/include/c++/12.2.1/unordered_map:78:1: error: expected unqualified-id before 'namespace'
78 | namespace std _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~
main.cpp: In member function 'std::vector<int> Solution::findSubstring(std::string, std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:68:9: error: 'unordered_map' was not declared in this scope
68 | unordered_map<string, int> map;
| ^~~~~~~~~~~~~
main.cpp:66:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
65 | #include <unordered_map>
+++ |+#include <unordered_map>
66 | vector<int> findSubstring(string s, vector<string>& words) {
main.cpp:68:29: error: expected primary-expression before ',' token
68 | unordered_map<string, int> map;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !