/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:19:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
                      ^
foo.cpp:19:24: error: expected primary-expression before '=' token
   scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
                        ^
foo.cpp:19:34: error: 'i' was not declared in this scope
   scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
                                  ^
foo.cpp:19:50: error: 'j' was not declared in this scope
   scanf ("%d",&val[i]);=(tot+val[i]*(sum[head[i][j]]-val[i]))%10007;
                                                  ^
foo.cpp:14:12: warning: unused variable 'ans' [-Wunused-variable]
  int n,a,b,ans=-1,tot=0;
            ^
foo.cpp: At global scope:
foo.cpp:21:9: error: expected constructor, destructor, or type conversion before '(' token
  printf ("1 1\n");
         ^
foo.cpp:22:2: error: expected unqualified-id before 'return'
  return 0;
  ^
foo.cpp:23:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1906 联合权值
语言
C++
递交时间
2015-10-09 16:28:36
评测时间
2015-10-09 16:28:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes