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;
^
|