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_24954867_24141.cpp:6:1: error: expected unqualified-id before '{' token
 {     
 ^
0_0_24954867_24141.cpp:8:9: error: 'a' does not name a type
 int t; }a[N]; 
         ^
0_0_24954867_24141.cpp:5:17: error: expected ']' before 'struct'
 #define N 10005 struct node 
                 ^
0_0_24954867_24141.cpp:9:8: note: in expansion of macro 'N'
 int dp[N]; 
        ^
0_0_24954867_24141.cpp: In function 'int cmp(const void*, const void*)':
0_0_24954867_24141.cpp:12:11: error: 'node' was not declared in this scope
 return (*(node *)a).t-(*(node *)b).t; 
           ^
0_0_24954867_24141.cpp:12:17: error: expected primary-expression before ')' token
 return (*(node *)a).t-(*(node *)b).t; 
                 ^
0_0_24954867_24141.cpp:12:18: error: expected ')' before 'a'
 return (*(node *)a).t-(*(node *)b).t; 
                  ^
0_0_24954867_24141.cpp: In function 'int main()':
0_0_24954867_24141.cpp:27:17: error: 'a' was not declared in this scope
 scanf("%d%d%d",&a[i].t,&a[i].x,&a[i].y);         
                 ^
0_0_24954867_24141.cpp:28:7: error: 'a' was not declared in this scope
 qsort(a+1,n,sizeof(a[0]),cmp);        
       ^
0_0_24954867_24141.cpp:29:9: error: 'dp' was not declared in this scope
  memset(dp,0,sizeof(dp));         
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 18:23:12, Gzip enabled