Borderou de evaluare (job #2852061)
Utilizator | Data | 19 februarie 2022 11:18:49 | |
---|---|---|---|
Problema | Gcdseq | Status | done |
Runda | Algoritmiada 2022 - Runda 2 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:13: error: 'L' was not declared in this scope
22 | L[i] = stk.back();
| ^
main.cpp:24:13: error: 'L' was not declared in this scope
24 | L[i] = 0;
| ^
main.cpp:32:13: error: 'R' was not declared in this scope
32 | R[i] = stk.back();
| ^
main.cpp:34:13: error: 'R' was not declared in this scope
34 | R[i] = n + 1;
| ^
main.cpp:37:5: error: 'll' was not declared in this scope
37 | ll window = 0;
| ^~
main.cpp:39:9: error: 'window' was not declared in this scope
39 | window += min(L[i], R[i]);
| ^~~~~~
main.cpp:39:23: error: 'L' was not declared in this scope
39 | window += min(L[i], R[i]);
| ^
main.cpp:39:29: error: 'R' was not declared in this scope
39 | window += min(L[i], R[i]);
| ^
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from main.cpp:1:
main.cpp:40:12: error: 'window' was not declared in this scope
40 | assert(window <= 10 * n);
| ^~~~~~
main.cpp:41:7: error: expected ';' before 'ans'
41 | ll ans = 0;
| ^~~~
| ;
main.cpp:42:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
42 | cout << ans << "\n";
| ^~~
| abs
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !