/ Vijos /

记录详情

Compile Error

/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]
 }
 ^

信息

递交者
类型
递交
题目
P1427 机密信息
语言
C++
递交时间
2019-08-21 09:31:24
评测时间
2019-08-22 11:43:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes