Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:27: error: 'a' cannot be used as a function
   17 |                          a(j+1)=j;
      |                          ~^~~~~
/in/foo.cc:13:27: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   13 |                         if(x%j==0)
      |                           ^

信息

递交者
类型
递交
题目
P1491 A6-4 最大公约数专题:多个数的最大公约数
语言
C++
递交时间
2026-03-08 18:09:13
评测时间
2026-03-08 18:09:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes