记录详情

Compile Error

foo.cc: In function 'bool prime(int)':
foo.cc:6:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    6 |  if(x<2||x>2&&x%2==0) return 0;
      |          ~~~^~~~~~~~
foo.cc: In function 'void dfs(int, int, int)':
foo.cc:22:15: error: 'cnt' was not declared in this scope; did you mean 'int'?
   22 |         cout<<cnt;
      |               ^~~
      |               int
foo.cc:29:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   29 |             dfs(cnt+1, sum+i, i+1);
      |                 ^~~
      |                 int
foo.cc:29:24: error: 'sum' was not declared in this scope
   29 |             dfs(cnt+1, sum+i, i+1);
      |                        ^~~
Found 10 testcases.
您没有权限查看该代码,完成本题后再来查看

信息

递交者
类型
递交模式
题目
P3921 素数分解
语言
C++14
递交时间
2024-03-15 23:04:16
评测时间
2024-03-15 23:04:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes