/in/foo.cc: In function 'int read()':
/in/foo.cc:10:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while(c=getchar())
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:18: error: 'n' was not declared in this scope
scanf("%d%d%d",&n,&s,&t);
^
/in/foo.cc:19:21: error: 's' was not declared in this scope
scanf("%d%d%d",&n,&s,&t);
^
/in/foo.cc:19:24: error: 't' was not declared in this scope
scanf("%d%d%d",&n,&s,&t);
^
/in/foo.cc:20:6: error: 'i' was not declared in this scope
for(i=1;i<=n;i++) scanf("%d %d",&j,&k),p[j]=k,S[j]=read(),a[k]++;
^
/in/foo.cc:20:35: error: 'j' was not declared in this scope
for(i=1;i<=n;i++) scanf("%d %d",&j,&k),p[j]=k,S[j]=read(),a[k]++;
^
/in/foo.cc:20:38: error: 'k' was not declared in this scope
for(i=1;i<=n;i++) scanf("%d %d",&j,&k),p[j]=k,S[j]=read(),a[k]++;
^
/in/foo.cc:21:5: error: 'i' was not declared in this scope
i=s;
^
/in/foo.cc:34:18: error: 'l' was not declared in this scope
if(v[i]) l+=S[i],time+=a[i];
^
/in/foo.cc:36:21: error: 'l' was not declared in this scope
printf("%d\n%d",l,time);
^
/in/foo.cc: In function 'int read()':
/in/foo.cc:16:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^