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_23387460_15622.cpp:5:5: error: expected primary-expression before 'long'
     long long m,n;
     ^
0_0_23387460_15622.cpp:5:5: error: expected '}' before 'long'
0_0_23387460_15622.cpp:5:5: error: expected ',' or ';' before 'long'
0_0_23387460_15622.cpp:6:10: error: expected constructor, destructor, or type conversion before '(' token
     scanf("%I64dI64d",&m,&n);
          ^
0_0_23387460_15622.cpp:9:5: error: expected unqualified-id before 'for'
     for(int i=0;i<m;i++)
     ^
0_0_23387460_15622.cpp:9:17: error: 'i' does not name a type
     for(int i=0;i<m;i++)
                 ^
0_0_23387460_15622.cpp:9:21: error: 'i' does not name a type
     for(int i=0;i<m;i++)
                     ^
0_0_23387460_15622.cpp:11:17: error: expected constructor, destructor, or type conversion before '(' token
             sort(a,a+m-1);
                 ^
0_0_23387460_15622.cpp:12:5: error: expected unqualified-id before 'for'
     for(int j=m-1;j>=m-n;j--)
     ^
0_0_23387460_15622.cpp:12:19: error: 'j' does not name a type
     for(int j=m-1;j>=m-n;j--)
                   ^
0_0_23387460_15622.cpp:12:26: error: 'j' does not name a type
     for(int j=m-1;j>=m-n;j--)
                          ^
0_0_23387460_15622.cpp:14:15: error: expected constructor, destructor, or type conversion before '(' token
         printf("\n");
               ^
0_0_23387460_15622.cpp:15:9: error: expected declaration before '}' token
         }
         ^


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-12-03 03:59:15, Gzip enabled