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_33065281_29920.cpp: In function 'int main()':
0_0_33065281_29920.cpp:28:7: error: expected unqualified-id before 'case'
   int case, n;
       ^
0_0_33065281_29920.cpp:29:10: error: expected primary-expression before 'case'
   cin >> case >> n;
          ^
0_0_33065281_29920.cpp:30:24: error: 'n' was not declared in this scope
   for (int i = 1; i <= n;i++)
                        ^
0_0_33065281_29920.cpp:35:11: error: expected primary-expression before 'case'
   cout << case << " " << (n + 1) / 2 << endl;
           ^
0_0_33065281_29920.cpp:36:27: error: 'n' was not declared in this scope
   sort(arr + 1, arr + 1 + n, cmp);//将序列从大到小排序
                           ^
0_0_33065281_29920.cpp:43:13: error: request for member 'index' in 'a[j]', which is of non-class type 'int'
     if(a[j].index<=i)
             ^
0_0_33065281_29920.cpp:48:20: error: request for member 'v' in 'a[j]', which is of non-class type 'int'
       cout << a[j].v;
                    ^
0_0_33065281_29920.cpp:53:18: error: request for member 'v' in 'a[j]', which is of non-class type 'int'
          << a[j].v;
                  ^
0_0_33065281_29920.cpp:56:28: error: request for member 'v' in 'a[j]', which is of non-class type 'int'
        cout << " " << a[j].v;
                            ^


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-11-30 17:36:07, Gzip enabled