0_0_13861358_23322.cpp: In function 'int main()':
0_0_13861358_23322.cpp:14:9: error: 'll' was not declared in this scope
ll ans=0;
^
0_0_13861358_23322.cpp:17:22: error: the value of 'll' is not usable in a constant expression
multiset<ll> ::iterator it = S.lower_bound(p-a[i]);
^
0_0_13861358_23322.cpp:14:9: note: 'll' was not declared 'constexpr'
ll ans=0;
^
0_0_13861358_23322.cpp:17:24: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Key, class _Compare, class _Alloc> class std::multiset'
multiset<ll> ::iterator it = S.lower_bound(p-a[i]);
^
0_0_13861358_23322.cpp:17:24: error: expected a type, got 'll'
0_0_13861358_23322.cpp:17:24: error: template argument 2 is invalid
0_0_13861358_23322.cpp:17:24: error: template argument 3 is invalid
0_0_13861358_23322.cpp:17:37: error: expected initializer before 'it'
multiset<ll> ::iterator it = S.lower_bound(p-a[i]);
^
0_0_13861358_23322.cpp:18:13: error: 'it' was not declared in this scope
it--;
^
0_0_13861358_23322.cpp:19:13: error: 'ans' was not declared in this scope
ans = max(ans,(a[i]+*it)%p);
^
0_0_13861358_23322.cpp:25:17: error: 'ans' was not declared in this scope
cout << ans << endl;
^
|