Borderou de evaluare (job #2346657)
Utilizator | Data | 17 februarie 2019 21:55:59 | |
---|---|---|---|
Problema | Rest | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:2: error: invalid preprocessing directive #typedef
#typedef unsigned long long ull;
^~~~~~~
main.cpp:8:9: error: 'ull' does not name a type
typedef ull uint;
^~~
main.cpp:11:1: error: 'ull' does not name a type
ull arbint[nmax * 4 + 66];
^~~
main.cpp:12:1: error: 'ull' does not name a type
ull powers[nmax];
^~~
main.cpp: In function 'void precalc()':
main.cpp:17:5: error: 'powers' was not declared in this scope
powers[0] = 1;
^~~~~~
main.cpp:18:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i <= n; i++) {
~~^~~~
main.cpp: At global scope:
main.cpp:24:1: error: 'ull' does not name a type
ull my_pow(ull base, ull power) {
^~~
main.cpp: In function 'void build(uint, uint, uint)':
main.cpp:30:9: error: 'arbint' was not declared in this scope
arbint[node] = v[left];
^~~~~~
main.cpp:38:5: error: 'arbint' was not declared in this scope
arbint[node] = (arbint[2 * node + 1] * my_pow(b, right - mid) + arbint[2 * node + 2]) % p;
^~~~~~
main.cpp:38:65: error: 'my_pow' was not declared in this scope
arbint[node] = (arbint[2 * node + 1] * my_pow(b, right - mid) + arbint[2 * node + 2]) % p;
^
main.cpp: In function 'void update(uint, uint, uint, uint, uint)':
main.cpp:43:9: error: 'arbint' was not declared in this scope
arbint[node] = val;
^~~~~~
main.cpp:51:5: error: 'arbint' was not declared in this scope
arbint[node] = (arbint[2 * node + 1] * my_pow(b, right - mid) + arbint[2 * node + 2]) % p;
^~~~~~
main.cpp:51:65: error: 'my_pow' was not declared in this scope
arbint[node] = (arbint[2 * node + 1] * my_pow(b, right - mid) + arbint[2 * node + 2]) % p;
^
main.cpp: At global scope:
main.cpp:54:1: error: 'ull' does not name a type
ull result = 0;
^~~
main.cpp: In function 'void query(uint, uint, uint, uint, uint)':
main.cpp:58:9: error: 'result' was not declared in this scope
result += arbint[node] * my_pow(b, mid);
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !