记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:15:9: error: expected ')' before '{' token
         {
         ^
foo.cc:14:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if (((isprime(q)) == 1 && n == q + 2)
         ^~
foo.cc:20:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
             for (int m = q + 1; m < n; m++)
                                 ^
foo.cc:20:33: error: 'm' was not declared in this scope
foo.cc:9:9: warning: unused variable 'a' [-Wunused-variable]
     int a, b, c;
         ^
foo.cc:9:12: warning: unused variable 'b' [-Wunused-variable]
     int a, b, c;
            ^
foo.cc:9:15: warning: unused variable 'c' [-Wunused-variable]
     int a, b, c;
               ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
周末测试1
语言
C++
递交时间
2021-09-03 21:07:52
评测时间
2021-09-03 21:07:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes