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_15888242_32120.cpp:7:10: error: 'Ti Ti [100]' redeclared as different kind of symbol
 Ti Ti[100];
          ^
0_0_15888242_32120.cpp:6:2: note: previous declaration 'typedef struct Ti Ti'
 }Ti;
  ^
0_0_15888242_32120.cpp: In function 'int main()':
0_0_15888242_32120.cpp:19:20: error: expected primary-expression before '[' token
    scanf("%d%d",&Ti[i].s,&Ti[i].e);
                    ^
0_0_15888242_32120.cpp:19:29: error: expected primary-expression before '[' token
    scanf("%d%d",&Ti[i].s,&Ti[i].e);
                             ^
0_0_15888242_32120.cpp:24:10: error: expected primary-expression before '[' token
     if(Ti[i-1].s>Ti[i].s){
          ^
0_0_15888242_32120.cpp:24:20: error: expected primary-expression before '[' token
     if(Ti[i-1].s>Ti[i].s){
                    ^
0_0_15888242_32120.cpp:25:10: error: expected primary-expression before '[' token
      t=Ti[i-1].s;
          ^
0_0_15888242_32120.cpp:26:8: error: expected unqualified-id before '[' token
      Ti[i-1].s=Ti[i].s;
        ^
0_0_15888242_32120.cpp:27:8: error: expected unqualified-id before '[' token
      Ti[i].s=t;
        ^
0_0_15888242_32120.cpp:28:10: error: expected primary-expression before '[' token
      t=Ti[i-1].e;
          ^
0_0_15888242_32120.cpp:29:8: error: expected unqualified-id before '[' token
      Ti[i-1].e=Ti[i].e;
        ^
0_0_15888242_32120.cpp:30:8: error: expected unqualified-id before '[' token
      Ti[i].e=t;
        ^
0_0_15888242_32120.cpp:35:24: error: expected primary-expression before '[' token
    printf("%d\t%d\n",Ti[i].s,Ti[i].e);
                        ^
0_0_15888242_32120.cpp:35:32: error: expected primary-expression before '[' token
    printf("%d\t%d\n",Ti[i].s,Ti[i].e);
                                ^
0_0_15888242_32120.cpp:43:8: error: expected primary-expression before '[' token
    t=Ti[i].s;
        ^
0_0_15888242_32120.cpp:45:13: error: expected primary-expression before '[' token
     if(t<=Ti[j].s){
             ^
0_0_15888242_32120.cpp:47:10: error: expected primary-expression before '[' token
      t=Ti[j].e;
          ^


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 05:58:20, Gzip enabled