/in/foo.cc:9:1: error: expected ';' after struct definition
}
^
/in/foo.cc: In function 'void SortbyID(Student*, int)':
/in/foo.cc:12:7: error: 'student' was not declared in this scope
sort(student ss[1].id,student ss[5].id)
^~~~~~~
/in/foo.cc:12:32: error: expected ')' before 'ss'
sort(student ss[1].id,student ss[5].id)
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:19: error: expected primary-expression before 'ss'
SortbyID(Student ss[], n);
^~
/in/foo.cc:22:8: error: 'student' was not declared in this scope
cout<<student ss[k];
^~~~~~~