记录详情

Compile Error

/in/foo.cc: In function 'void gcd(int, int)':
/in/foo.cc:8:18: error: return-statement with a value, in function returning 'void' [-fpermissive]
  if(y==0) return x;
                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:22:28: error: invalid operands of types 'void' and 'int' to binary 'operator=='
     if(i%a1==0&&gcd(i/a1,p)==1&&gcd(q,b1/i)==1) sum++;
                 ~~~~~~~~~~~^~~
/in/foo.cc:22:44: error: invalid operands of types 'void' and 'int' to binary 'operator=='
     if(i%a1==0&&gcd(i/a1,p)==1&&gcd(q,b1/i)==1) sum++;
                                 ~~~~~~~~~~~^~~
/in/foo.cc:25:28: error: invalid operands of types 'void' and 'int' to binary 'operator=='
     if(h%a1==0&&gcd(h/a1,p)==1&&gcd(q,b1/h)==1) sum++;
                 ~~~~~~~~~~~^~~
/in/foo.cc:25:44: error: invalid operands of types 'void' and 'int' to binary 'operator=='
     if(h%a1==0&&gcd(h/a1,p)==1&&gcd(q,b1/h)==1) sum++;
                                 ~~~~~~~~~~~^~~

信息

递交者
类型
递交
题目
Hankson 的趣味题
题目数据
下载
语言
C++
递交时间
2019-02-28 13:35:27
评测时间
2019-02-28 13:35:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes