| Problem | segmenttree2 |
|---|---|
| User | Usu |
| Submission Time | 2026-02-26 19:12:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:7:21: error: ISO C++ forbids declaration of ‘SegTree’ with no type [-fpermissive]
7 | SegTree(int size) {
| ^
segmenttree2.cpp: In function ‘int32_t main()’:
segmenttree2.cpp:57:22: error: no matching function for call to ‘Segtree::Segtree(long long int&)’
57 | Segtree segtree(n);
| ^
segmenttree2.cpp:4:8: note: candidate: ‘Segtree::Segtree()’
4 | struct Segtree {
| ^~~~~~~
segmenttree2.cpp:4:8: note: candidate expects 0 arguments, 1 provided
segmenttree2.cpp:4:8: note: candidate: ‘Segtree::Segtree(const Segtree&)’
segmenttree2.cpp:4:8: note: no known conversion for argument 1 from ‘long long int’ to ‘const Segtree&’
segmenttree2.cpp:4:8: note: candidate: ‘Segtree::Segtree(Segtree&&)’
segmenttree2.cpp:4:8: note: no known conversion for argument 1 from ‘long long int’ to ‘Segtree&&’