Borderou de evaluare (job #3266649)
Utilizator | Data | 9 ianuarie 2025 18:37:52 | |
---|---|---|---|
Problema | Arbori de intervale | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:17: error: class template placeholder 'std::iterator' not permitted in this context
21 | void build (iterator.first, iterator.last){
| ^~~~~~~~
main.cpp:21:17: note: use 'auto' for an abbreviated function template
main.cpp:21:25: error: expected ',' or '...' before '.' token
21 | void build (iterator.first, iterator.last){
| ^
main.cpp: In member function 'void Segmtree::build(...)':
main.cpp:22:22: error: 'first' was not declared in this scope
22 | n = distance(first,last);
| ^~~~~
main.cpp:22:28: error: 'last' was not declared in this scope; did you mean 'std::chrono::last'?
22 | n = distance(first,last);
| ^~~~
| std::chrono::last
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:101,
from main.cpp:1:
/usr/include/c++/12.2.1/chrono:133:32: note: 'std::chrono::last' declared here
133 | inline constexpr last_spec last{};
| ^~~~
main.cpp:25:44: error: 'i' was not declared in this scope
25 | for (auto it = first;it!=last;it++,i++){
| ^
main.cpp:29:14: error: invalid types 'int[int]' for array subscript
29 | t[i] = merge(t[i<<1],t[i<<1|1]);
| ^
main.cpp:29:27: error: invalid types 'int[int]' for array subscript
29 | t[i] = merge(t[i<<1],t[i<<1|1]);
| ^
main.cpp:29:35: error: invalid types 'int[int]' for array subscript
29 | t[i] = merge(t[i<<1],t[i<<1|1]);
| ^
main.cpp: In function 'int main()':
main.cpp:57:5: error: 'Segtree' was not declared in this scope; did you mean 'Segmtree'?
57 | Segtree S;
| ^~~~~~~
| Segmtree
main.cpp:58:5: error: 'S' was not declared in this scope
58 | S.build(a,a+n);
| ^
main.cpp:63:26: error: 'node' was not declared in this scope
63 | S.update(a-1,node(b));
| ^~~~
main.cpp:65:21: error: 'query' was not declared in this scope
65 | fout << query(a-1,b) << '\n';
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !