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_29975245_24673.cpp:1:1: error: 'LL' does not name a type
 LL T,N,M;
 ^
0_0_29975245_24673.cpp: In function 'int main()':
0_0_29975245_24673.cpp:9:10: error: 'std::ios' has not been declared
     std::ios::sync_with_stdio(false);
          ^
0_0_29975245_24673.cpp:10:5: error: 'cin' was not declared in this scope
     cin.tie(0);
     ^
0_0_29975245_24673.cpp:11:5: error: 'cout' was not declared in this scope
     cout.tie(0);
     ^
0_0_29975245_24673.cpp:15:12: error: 'T' was not declared in this scope
     cin >> T;
            ^
0_0_29975245_24673.cpp:18:16: error: 'N' was not declared in this scope
         cin >> N >> M;
                ^
0_0_29975245_24673.cpp:18:21: error: 'M' was not declared in this scope
         cin >> N >> M;
                     ^
0_0_29975245_24673.cpp:19:9: error: 'multiset' was not declared in this scope
         multiset<int,greater<int>> a;
         ^
0_0_29975245_24673.cpp:19:18: error: expected primary-expression before 'int'
         multiset<int,greater<int>> a;
                  ^
0_0_29975245_24673.cpp:20:9: error: 'LL' was not declared in this scope
         LL sum = 0;
         ^
0_0_29975245_24673.cpp:24:9: error: 'a' was not declared in this scope
         a.insert(x);
         ^
0_0_29975245_24673.cpp:26:9: error: 'sum' was not declared in this scope
         sum += x;
         ^
0_0_29975245_24673.cpp:27:18: error: expected primary-expression before 'int'
         multiset<int,greater<int>> ::iterator  it;
                  ^
0_0_29975245_24673.cpp:38:21: error: 'it' was not declared in this scope
                     it = a.begin();
                     ^
0_0_29975245_24673.cpp:40:22: error: 'it' was not declared in this scope
                 else it++;
                      ^
0_0_29975245_24673.cpp:41:25: error: 'it' was not declared in this scope
                 sum -= *it;
                         ^
0_0_29975245_24673.cpp:46:37: error: 'it' was not declared in this scope
                 if(cnt >0 && sum + *it <= M)
                                     ^
0_0_29975245_24673.cpp:57:32: error: 'it' was not declared in this scope
             if(cnt > 0 && x > *it)
                                ^
0_0_29975245_24673.cpp:65:16: error: 'endl' was not declared in this scope
         cout <<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-10-02 00:55:48, Gzip enabled