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_36518079_15145.cpp:1:1: error: 'truct' does not name a type
 truct node
 ^
0_0_36518079_15145.cpp:5:2: error: 's' does not name a type
 }s[1005]; 
  ^
0_0_36518079_15145.cpp:6:10: error: 'node' was not declared in this scope
 bool cmp(node a,node b)
          ^
0_0_36518079_15145.cpp:6:17: error: 'node' was not declared in this scope
 bool cmp(node a,node b)
                 ^
0_0_36518079_15145.cpp:6:23: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(node a,node b)
                       ^
0_0_36518079_15145.cpp:7:1: error: expected ',' or ';' before '{' token
 {
 ^
0_0_36518079_15145.cpp: In function 'int main()':
0_0_36518079_15145.cpp:21:11: error: 'cin' was not declared in this scope
     while(cin>>n)
           ^
0_0_36518079_15145.cpp:25:9: error: 's' was not declared in this scope
    cin>>s[i].a>>s[i].b>>s[i].c;
         ^
0_0_36518079_15145.cpp:28:8: error: 's' was not declared in this scope
   sort(s+1,s+n+1,cmp);
        ^
0_0_36518079_15145.cpp:28:21: error: 'sort' was not declared in this scope
   sort(s+1,s+n+1,cmp);
                     ^
0_0_36518079_15145.cpp:29:3: error: 'cout' was not declared in this scope
   cout<<s[1].index;
   ^
0_0_36518079_15145.cpp:32:9: 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-11-23 04:45:15, Gzip enabled