0_0_34099085_3555.cpp:6:1: error: 'strcut' does not name a type
strcut node
^
0_0_34099085_3555.cpp:9:2: error: 'road' does not name a type
}road[200];
^
0_0_34099085_3555.cpp:11:9: error: 'node' was not declared in this scope
int cmp(node a,node b){
^
0_0_34099085_3555.cpp:11:16: error: 'node' was not declared in this scope
int cmp(node a,node b){
^
0_0_34099085_3555.cpp:11:22: error: expression list treated as compound expression in initializer [-fpermissive]
int cmp(node a,node b){
^
0_0_34099085_3555.cpp:11:23: error: expected ',' or ';' before '{' token
int cmp(node a,node b){
^
0_0_34099085_3555.cpp: In function 'int main()':
0_0_34099085_3555.cpp:28:8: error: 'n' was not declared in this scope
cin>>n;
^
0_0_34099085_3555.cpp:30:7: error: 'i' was not declared in this scope
for(i=0;i<n;i++){
^
0_0_34099085_3555.cpp:31:9: error: 'road' was not declared in this scope
cin>>road[i].head>>road[i].tail;
^
0_0_34099085_3555.cpp:34:8: error: 'road' was not declared in this scope
sort(road,road+n,cmp);
^
0_0_34099085_3555.cpp:35:7: error: 'i' was not declared in this scope
for(i=0;i<n;i++){
^
0_0_34099085_3555.cpp:38:5: error: 'tail' was not declared in this scope
tail=road[i].tail;
^
0_0_34099085_3555.cpp:39:9: error: 'j' was not declared in this scope
for(j=i+1;j<n;j++){
^
0_0_34099085_3555.cpp:48:3: error: expected ';' before '}' token
}
^
|