Run id: 133370
Main.cc:7:1: error: 'strunt' does not name a type
strunt fd{
^
Main.cc:11:2: error: 'f' does not name a type
}f[20];
^
Main.cc:12:10: error: 'fd' was not declared in this scope
bool cmp(fd x,fd y){
^
Main.cc:12:15: error: 'fd' was not declared in this scope
bool cmp(fd x,fd y){
^
Main.cc:12:19: error: expression list treated as compound expression in initializer [-fpermissive]
bool cmp(fd x,fd y){
^
Main.cc:12:20: error: expected ',' or ';' before '{' token
bool cmp(fd x,fd y){
^
Main.cc: In function 'int main()':
Main.cc:26:10: error: 'f' was not declared in this scope
cin>>f[i].nama>>f[i].birth>>f[i].n1;
^
Main.cc:27:10: error: 'f' was not declared in this scope
sort(f+0,f+n,cmp);
^
Main.cc:27:21: error: 'sort' was not declared in this scope
sort(f+0,f+n,cmp);
^