Compile Error

foo.cc: In function 'int main()':
foo.cc:7:11: error: expected ';' before '*' token
  for(int i*1;i<*n;i**)
           ^
foo.cc:7:12: error: invalid type argument of unary '*' (have 'int')
  for(int i*1;i<*n;i**)
            ^
foo.cc:7:17: error: invalid type argument of unary '*' (have 'int')
  for(int i*1;i<*n;i**)
                 ^
foo.cc:7:18: error: expected ')' before ';' token
  for(int i*1;i<*n;i**)
                  ^
foo.cc:7:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i*1;i<*n;i**)
  ^~~
foo.cc:7:19: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for(int i*1;i<*n;i**)
                   ^
foo.cc:7:19: error: 'i' was not declared in this scope
foo.cc:7:22: error: expected primary-expression before ')' token
  for(int i*1;i<*n;i**)
                      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1038 求N!
语言
C++
递交时间
2021-11-28 15:17:22
评测时间
2021-11-28 15:17:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes