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_34099085_3555.cpp:6:1: error: 'strcut' does not name a type
 strcut node
 ^
0_0_34099085_3555.cpp:9:2: error: 'road' does not name a type
 }road[200];
  ^
0_0_34099085_3555.cpp:11:9: error: 'node' was not declared in this scope
 int cmp(node a,node b){
         ^
0_0_34099085_3555.cpp:11:16: error: 'node' was not declared in this scope
 int cmp(node a,node b){
                ^
0_0_34099085_3555.cpp:11:22: error: expression list treated as compound expression in initializer [-fpermissive]
 int cmp(node a,node b){
                      ^
0_0_34099085_3555.cpp:11:23: error: expected ',' or ';' before '{' token
 int cmp(node a,node b){
                       ^
0_0_34099085_3555.cpp: In function 'int main()':
0_0_34099085_3555.cpp:28:8: error: 'n' was not declared in this scope
   cin>>n;
        ^
0_0_34099085_3555.cpp:30:7: error: 'i' was not declared in this scope
   for(i=0;i<n;i++){
       ^
0_0_34099085_3555.cpp:31:9: error: 'road' was not declared in this scope
    cin>>road[i].head>>road[i].tail;
         ^
0_0_34099085_3555.cpp:34:8: error: 'road' was not declared in this scope
   sort(road,road+n,cmp);
        ^
0_0_34099085_3555.cpp:35:7: error: 'i' was not declared in this scope
   for(i=0;i<n;i++){
       ^
0_0_34099085_3555.cpp:38:5: error: 'tail' was not declared in this scope
     tail=road[i].tail;
     ^
0_0_34099085_3555.cpp:39:9: error: 'j' was not declared in this scope
     for(j=i+1;j<n;j++){
         ^
0_0_34099085_3555.cpp:48:3: error: expected ';' 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-07-01 20:49:58, Gzip enabled