foo.cc: In function 'int main()':
foo.cc:6:15: error: expected initializer before 'n'
6 | long iong n, flag = 0;
| ^
foo.cc:7:12: error: 'm' was not declared in this scope; did you mean 'tm'?
7 | cin >> m;
| ^
| tm
foo.cc:14:31: error: 'n' was not declared in this scope
14 | for (int i = 2; i <= sqrt(n); i++)
| ^
foo.cc:16:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
16 | if (0 == n% 1);
| ^~
foo.cc:17:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
17 | {
| ^
foo.cc:18:10: error: 'flag' was not declared in this scope
18 | flag = 1;
| ^~~~
foo.cc:22:14: error: 'flag' was not declared in this scope
22 | if (8 == flag)
| ^~~~
foo.cc:26:1: error: expected '}' at end of input
26 | }
| ^
foo.cc:13:5: note: to match this '{'
13 | {
| ^
foo.cc:26:1: error: expected '}' at end of input
26 | }
| ^
foo.cc:5:1: note: to match this '{'
5 | {
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务