Problem | goofyarray |
---|---|
User | Dolphy |
Submission Time | 2024-08-10 14:35:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goofyarray.cpp: In function ‘int32_t main()’:
goofyarray.cpp:11:10: error: ‘i’ was not declared in this scope; did you mean ‘it’?
11 | sort (a[i], a[i]+n);
| ^
| it
goofyarray.cpp:21:20: error: no matching function for call to ‘std::map<long long int, long long int>::upper_bound()’
21 | it=m.upper_bound(); it--;
| ^
In file included from /usr/include/c++/9/map:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:81,
from goofyarray.cpp:1:
/usr/include/c++/9/bits/stl_map.h:1302:7: note: candidate: ‘std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::upper_bound(const key_type&) [with _Key = long long int; _Tp = long long int; _Compare = std::less<long long int>; _Alloc = std::allocator<std::pair<const long long int, long long int> >; std::map<_Key, _Tp, _Compare, _Alloc>::iter