Borderou de evaluare (job #2342398)
Utilizator | Data | 12 februarie 2019 19:36:41 | |
---|---|---|---|
Problema | Pal2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:134:1: error: 'vector' does not name a type
vector<Nod> nodes;
^~~~~~
main.cpp: In function 'int newNod()':
main.cpp:136:2: error: 'nodes' was not declared in this scope
nodes.emplace_back();
^~~~~
main.cpp: At global scope:
main.cpp:140:2: error: 'vector' does not name a type
vector<pair<Num<MOD2>, int>> store[MOD1];
^~~~~~
main.cpp: In member function 'int& HMap::operator[](const Hash&)':
main.cpp:143:17: error: 'store' was not declared in this scope
for (auto &i: store[arg.first.val])
^~~~~
main.cpp:146:3: error: 'store' was not declared in this scope
store[arg.first.val].emplace_back(arg.second, newNod());
^~~~~
main.cpp: At global scope:
main.cpp:149:1: error: 'vector' does not name a type
vector<Hash> hsh, pwr;
^~~~~~
main.cpp: In function 'void build_hash()':
main.cpp:156:2: error: 'hsh' was not declared in this scope
hsh.resize(str.size());
^~~
main.cpp:157:2: error: 'pwr' was not declared in this scope
pwr.resize(str.size());
^~~
main.cpp:160:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < str.size(); ++i)
~~^~~~~~~~~~~~
main.cpp:163:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < str.size(); ++i)
~~^~~~~~~~~~~~
main.cpp: In function 'Hash get_hash(int, int)':
main.cpp:167:9: error: 'hsh' was not declared in this scope
return hsh[r] - (l == 0 ? Hash() : hsh[l - 1]) * pwr[r - l + 1]; }
^~~
main.cpp:167:51: error: 'pwr' was not declared in this scope
return hsh[r] - (l == 0 ? Hash() : hsh[l - 1]) * pwr[r - l + 1]; }
^~~
main.cpp: In function 'int build_tree()':
main.cpp:171:2: error: 'vector' was not declared in this scope
vector<int> pal;
^~~~~~
main.cpp:171:9: error: expected primary-expression before 'int'
vector<int> pal;
^~~
main.cpp:175:2: error: 'pal' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !