Submission #5865

#TimeUsernameProblemLanguageResultExecution timeMemory
5865cki86201Company Planning (TOKI14_company)C++98
Compilation error
0 ms0 KiB
//test #include<stdio.h> int n,m.i,x,p[100010],ans; int main(){scanf("%d%d",&n,&m);for(i=1;i<n;i++)scanf("%d",&x),p[x]++;for(i=1;i<=n;i++)if(ans<p[i])ans=p[i];printf("%d",ans);return 0;}

Compilation message (stderr)

company.cpp:3:8: error: expected initializer before '.' token
company.cpp: In function 'int main()':
company.cpp:4:29: error: 'm' was not declared in this scope
company.cpp:4:36: error: 'i' was not declared in this scope
company.cpp:4:60: error: 'x' was not declared in this scope
company.cpp:4:63: error: 'p' was not declared in this scope
company.cpp:4:90: error: 'ans' was not declared in this scope
company.cpp:4:94: error: 'p' was not declared in this scope
company.cpp:4:120: error: 'ans' was not declared in this scope