Borderou de evaluare (job #2410754)
Utilizator | Data | 20 aprilie 2019 12:00:52 | |
---|---|---|---|
Problema | Chei | Status | done |
Runda | Algoritmiada 2019 Runda PreONI | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:5: error: 'vector' does not name a type
vector <int> h;
^~~~~~
main.cpp:13:5: error: 'vector' does not name a type
vector <int> put;
^~~~~~
main.cpp: In constructor 'Hasher::Hasher(std::__cxx11::string, int)':
main.cpp:20:9: error: 'h' was not declared in this scope
h.resize(s.size());
^
main.cpp:21:9: error: 'put' was not declared in this scope
put.resize(s.size());
^~~
main.cpp:23:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s.size(); i++) {
~~^~~~~~~~~~
main.cpp: In member function 'int Hasher::get_hash(int)':
main.cpp:31:21: error: 'h' was not declared in this scope
int ans = ((h[p + n - 1] - 1LL * put[n] * h[p - 1]) % mod + mod) % mod;
^
main.cpp:31:42: error: 'put' was not declared in this scope
int ans = ((h[p + n - 1] - 1LL * put[n] * h[p - 1]) % mod + mod) % mod;
^~~
main.cpp: In function 'long long int Solve(std::__cxx11::string)':
main.cpp:50:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++) {
~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:109:9: error: 'mt19937' was not declared in this scope
mt19937 rnd((long long)(new char));
^~~~~~~
main.cpp:113:27: error: 'rnd' was not declared in this scope
i = 'a' + rnd() % 2;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !