0_0_17532831_25757.cpp:3:8: error: 'struct std' redeclared as different kind of symbol
struct std{
^
<built-in>: note: previous declaration 'namespace std { }'
0_0_17532831_25757.cpp:6:8: error: invalid type in declaration before ';' token
}a[100];
^
0_0_17532831_25757.cpp: In function 'int main()':
0_0_17532831_25757.cpp:9:13: error: aggregate 'main()::std temp' has incomplete type and cannot be defined
struct std temp;
^
0_0_17532831_25757.cpp:14:23: error: request for member 'ts' in 'a[i]', which is of non-class type 'int'
scanf("%d%d",&a[i].ts,&a[i].te);
^
0_0_17532831_25757.cpp:14:32: error: request for member 'te' in 'a[i]', which is of non-class type 'int'
scanf("%d%d",&a[i].ts,&a[i].te);
^
0_0_17532831_25757.cpp:17:13: error: request for member 'te' in 'a[j]', which is of non-class type 'int'
if(a[j].te>a[j+i].te)
^
0_0_17532831_25757.cpp:17:23: error: request for member 'te' in 'a[(j + i)]', which is of non-class type 'int'
if(a[j].te>a[j+i].te)
^
0_0_17532831_25757.cpp:23:16: error: request for member 'te' in 'a[0]', which is of non-class type 'int'
temp.te=a[0].te;
^
0_0_17532831_25757.cpp:26:12: error: request for member 'ts' in 'a[i]', which is of non-class type 'int'
if(a[i].ts>=temp.te)
^
0_0_17532831_25757.cpp:29:18: error: request for member 'te' in 'a[i]', which is of non-class type 'int'
temp.te=a[i].te;
^
|