Submission #5865

# Submission time Handle Problem Language Result Execution time Memory
5865 2014-05-20T11:10:51 Z cki86201 Company Planning (TOKI14_company) C++
Compilation error
0 ms 0 KB
//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

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