foo.cpp:1:1: error: 'include' does not name a type
include<cstdio>
^
foo.cpp: In function 'void out()':
foo.cpp:21:24: error: 'printf' was not declared in this scope
printf("%d",ans[ans[0]]); for (i=ans[0]-1;i>=1;i--) printf("%4.4d",ans[i]); }
^
foo.cpp: In function 'int cmp(const void*, const void*)':
foo.cpp:31:20: error: no matching function for call to 'NodeTp::NodeTp(const void*&)'
NodeTp y=*(NodeTp )b; return x.W > y.W ? 1:-1; }
^
foo.cpp:31:20: note: candidates are:
foo.cpp:11:8: note: NodeTp::NodeTp()
struct NodeTp
^
foo.cpp:11:8: note: candidate expects 0 arguments, 1 provided
foo.cpp:11:8: note: constexpr NodeTp::NodeTp(const NodeTp&)
foo.cpp:11:8: note: no known conversion for argument 1 from 'const void*' to 'const NodeTp&'
foo.cpp:11:8: note: constexpr NodeTp::NodeTp(NodeTp&&)
foo.cpp:11:8: note: no known conversion for argument 1 from 'const void*' to 'NodeTp&&'
foo.cpp: In function 'void init()':
foo.cpp:34:26: error: 'scanf' was not declared in this scope
scanf("%d%d%d",&n,&KL,&KR); for (i=1;i<=n;i++) {scanf("%d%d",&p[i].L,&p[i].R); p[i].W=p[i].Lp[i].R; } qsort(p+1,n,sizeof(p[1]),cmp); }
^
foo.cpp:34:92: error: 'struct NodeTp' has no member named 'Lp'
scanf("%d%d%d",&n,&KL,&KR); for (i=1;i<=n;i++) {scanf("%d%d",&p[i].L,&p[i].R); p[i].W=p[i].Lp[i].R; } qsort(p+1,n,sizeof(p[1]),cmp); }
^
foo.cpp:34:131: error: 'qsort' was not declared in this scope
scanf("%d%d%d",&n,&KL,&KR); for (i=1;i<=n;i++) {scanf("%d%d",&p[i].L,&p[i].R); p[i].W=p[i].Lp[i].R; } qsort(p+1,n,sizeof(p[1]),cmp); }
^
foo.cpp: In function 'void work()':
foo.cpp:37:105: error: 'memcpy' was not declared in this scope
a[0]=1,a[1]=KL; ans[0]=1,ans[1]=0; for (i=1;i<=n;i++) {div(p[i].R); if (ncmp()>0) memcpy(ans,b,sizeof(b)); mult(p[i].L); } }
^