0_0_34720355_3862.cpp: In function 'int main()':
0_0_34720355_3862.cpp:36:5: error: redefinition of 'int main()'
int main(){
^
0_0_34720355_3862.cpp:17:5: note: 'int main()' previously defined here
int main(){
^
0_0_34720355_3862.cpp:43:52: error: 'struct cs' has no member named 'name'
for(int i=0;i<n;i++) scanf("%s %s %d",s[i].id,s[i].name,&s[i].dig);
^
0_0_34720355_3862.cpp:43:63: error: 'struct cs' has no member named 'dig'
for(int i=0;i<n;i++) scanf("%s %s %d",s[i].id,s[i].name,&s[i].dig);
^
0_0_34720355_3862.cpp:45:26: error: 'cmp_1' was not declared in this scope
else if(c==2) sort(s,s+n,cmp_1);
^
0_0_34720355_3862.cpp:46:26: error: 'cmp_2' was not declared in this scope
else if(c==3) sort(s,s+n,cmp_2);
^
0_0_34720355_3862.cpp:48:55: error: 'struct cs' has no member named 'name'
for(int i=0;i<n;i++) printf("%s %s %d\n",s[i].id,s[i].name,s[i].dig);
^
0_0_34720355_3862.cpp:48:65: error: 'struct cs' has no member named 'dig'
for(int i=0;i<n;i++) printf("%s %s %d\n",s[i].id,s[i].name,s[i].dig);
^
|