foo.cpp: In function 'int tip(int)':
foo.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
foo.cpp: In function 'int main()':
foo.cpp:35:13: error: expected unqualified-id before 'new'
int i,j,new,ans[1000],ansn,tmpb;
^
foo.cpp:51:20: error: expected type-specifier before '=' token
new=newnode();
^
foo.cpp:52:26: error: expected type-specifier before ']' token
queue[new]=queue[temp];
^
foo.cpp:56:13: error: 'ansn' was not declared in this scope
ansn=0;
^
foo.cpp:57:13: error: 'tmpb' was not declared in this scope
tmpb=head;
^
foo.cpp:59:17: error: 'ans' was not declared in this scope
ans[ansn]=queue[tmpb].change;
^
foo.cpp:67:11: error: 'ans' was not declared in this scope
qsort(ans,ansn,sizeof(ans[0]),cmp);
^
foo.cpp:67:15: error: 'ansn' was not declared in this scope
qsort(ans,ansn,sizeof(ans[0]),cmp);
^
foo.cpp:67:38: error: 'qsort' was not declared in this scope
qsort(ans,ansn,sizeof(ans[0]),cmp);
^