0_0_32008542_12160.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_32008542_12160.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_32008542_12160.cpp:8:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_32008542_12160.cpp: In member function 'bool Ti::operator<(const Ti&) const':
0_0_32008542_12160.cpp:30:1: error: expected ';' before 'return'
return this->e
^
0_0_32008542_12160.cpp: In function 'int main()':
0_0_32008542_12160.cpp:60:21: error: expected ';' before '{' token
for(int i=0;i { scanf("%d%d",&s,&e); t1[i].s=s; t1[i].e=e; } stable_sort(&t1[0],&t1[n]);//按照节目时间由短到长排列 t2[0]=t1[0];//因为第一个是必须看的; //cout<<"t1[0].s="<<t1[0].s<<""<<"t1[0].e="<<t1[0].e<<endl; for(int i=1;i { if(t1[i].s>=t2[d-1].e) { //cout<<"t2[d-1].s="<<t2[d-1].s<<""<<"t2[d-1].e="<<t2[d-1].e<<endl; t2[d++]=t1[i]; ans++; } //cout<<"t1[i].s="<<t1[i].s<<""<<"t1[i].e="<<t1[i].e<<endl; } printf("%d\n",ans); }}
^
0_0_32008542_12160.cpp:60:21: error: expected primary-expression before '{' token
0_0_32008542_12160.cpp:60:21: error: expected ')' before '{' token
0_0_32008542_12160.cpp:60:136: error: expected '}' at end of input
for(int i=0;i { scanf("%d%d",&s,&e); t1[i].s=s; t1[i].e=e; } stable_sort(&t1[0],&t1[n]);//按照节目时间由短到长排列 t2[0]=t1[0];//因为第一个是必须看的; //cout<<"t1[0].s="<<t1[0].s<<""<<"t1[0].e="<<t1[0].e<<endl; for(int i=1;i { if(t1[i].s>=t2[d-1].e) { //cout<<"t2[d-1].s="<<t2[d-1].s<<""<<"t2[d-1].e="<<t2[d-1].e<<endl; t2[d++]=t1[i]; ans++; } //cout<<"t1[i].s="<<t1[i].s<<""<<"t1[i].e="<<t1[i].e<<endl; } printf("%d\n",ans); }}
^
0_0_32008542_12160.cpp:60:136: error: expected '}' at end of input
|