/ Vijos /

记录详情

Compile Error

foo.cc:5:1: error: expected initializer before 'unsigned'
 unsigned gcd_it(unsigned a, unsigned b) {
 ^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:20:14: error: 'a' was not declared in this scope
         cin>>a[i];
              ^
foo.cc:27:28: error: 'a' was not declared in this scope
             ans+=(gcd_it(k,a[j])^i^j);
                            ^
foo.cc:27:19: error: 'gcd_it' was not declared in this scope
             ans+=(gcd_it(k,a[j])^i^j);
                   ^~~~~~
foo.cc:27:19: note: suggested alternative: 'gid_t'
             ans+=(gcd_it(k,a[j])^i^j);
                   ^~~~~~
                   gid_t
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1992 最大公约数计数
语言
C++
递交时间
2021-11-16 06:21:22
评测时间
2021-11-16 06:21:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes