Borderou de evaluare (job #2587918)
Utilizator | Data | 23 martie 2020 19:36:46 | |
---|---|---|---|
Problema | Turnuri4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:43: error: expected initializer before 'dr1'
long long n, turnuri[100001], ans[100001] dr1[100001], st1[100001], st2[100001], dr2[100001];
^~~
main.cpp: In function 'int main()':
main.cpp:16:9: error: 'st2' was not declared in this scope
st2[i] = dr2[i] = i;
^~~
main.cpp:16:18: error: 'dr2' was not declared in this scope
st2[i] = dr2[i] = i;
^~~
main.cpp:25:9: error: 'st1' was not declared in this scope
st1[i] = calcVarf.size() ? calcVarf.top() : 0;
^~~
main.cpp:36:9: error: 'dr1' was not declared in this scope
dr1[i] = calcVarf.size() ? calcVarf.top() : n + 1;
^~~
main.cpp:41:18: error: 'dr1' was not declared in this scope
total += dr1[i] - st1[i] - 1;
^~~
main.cpp:41:27: error: 'st1' was not declared in this scope
total += dr1[i] - st1[i] - 1;
^~~
main.cpp:44:13: error: 'st1' was not declared in this scope
if (st1[i] > 0) {
^~~
main.cpp:45:13: error: 'ans' was not declared in this scope
ans[st1[i]] += st1[i] - st2[st1[i]];
^~~
main.cpp:45:37: error: 'st2' was not declared in this scope
ans[st1[i]] += st1[i] - st2[st1[i]];
^~~
main.cpp:54:13: error: 'dr1' was not declared in this scope
if (dr1[i] < n + 1) {
^~~
main.cpp:55:13: error: 'ans' was not declared in this scope
ans[dr1[i]] += dr2[dr1[i]] - dr1[i];
^~~
main.cpp:55:28: error: 'dr2' was not declared in this scope
ans[dr1[i]] += dr2[dr1[i]] - dr1[i];
^~~
main.cpp:64:9: error: 'ans' was not declared in this scope
ans[i] = ans[i] + total - (dr1[i] - st1[i] - 1) + 1;
^~~
main.cpp:64:36: error: 'dr1' was not declared in this scope
ans[i] = ans[i] + total - (dr1[i] - st1[i] - 1) + 1;
^~~
main.cpp:64:45: error: 'st1' was not declared in this scope
ans[i] = ans[i] + total - (dr1[i] - st1[i] - 1) + 1;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !