F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 13:30:42, Gzip enabled