Borderou de evaluare (job #3160275)
Utilizator | Data | 23 octombrie 2023 17:06:34 | |
---|---|---|---|
Problema | Hotel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:153:54: error: template argument 1 is invalid
153 | SegTree<data , int , SegTreeOperations<data , int> > aint(n);
| ^
main.cpp:153:56: error: template argument 1 is invalid
153 | SegTree<data , int , SegTreeOperations<data , int> > aint(n);
| ^
main.cpp:153:56: error: template argument 3 is invalid
main.cpp:157:14: error: request for member 'update' in 'aint', which is of non-class type 'int'
157 | aint.update(i,i,-1);
| ^~~~~~
main.cpp:165:26: error: request for member 'query' in 'aint', which is of non-class type 'int'
165 | cout << aint.query(1, n).ans << '\n';
| ^~~~~
main.cpp:170:18: error: request for member 'update' in 'aint', which is of non-class type 'int'
170 | aint.update(i, i + m - 1, -1);
| ^~~~~~
main.cpp:174:18: error: request for member 'update' in 'aint', which is of non-class type 'int'
174 | aint.update(i, i + m - 1, 1);
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !