/in/foo.cc:7:20: error: '__int64' does not name a type
struct ttp{int Len;__int64 Num;};
^~~~~~~
/in/foo.cc:11:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:24: error: 'struct ttp' has no member named 'Num'
k=i;g[i].Len=1;g[i].Num=1;
^~~
/in/foo.cc:22:28: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
/in/foo.cc:23:32: error: 'struct ttp' has no member named 'Num'
g[i].Len=g[k].Len+1;g[i].Num=0;
^~~
/in/foo.cc:26:9: error: 'struct ttp' has no member named 'Num'
g[i].Num+=g[j].Num;vis[a[j]]=1;
^~~
/in/foo.cc:26:19: error: 'struct ttp' has no member named 'Num'
g[i].Num+=g[j].Num;vis[a[j]]=1;
^~~
/in/foo.cc:29:46: error: 'struct ttp' has no member named 'Num'
printf("%d %0.0lf\n",g[0].Len-1,double(g[0].Num));
^~~