记录详情

Compile Error

foo.cc:6:9: error: expected initializer before 'int'
    6 |         int i, j, nb;
      |         ^~~
foo.cc:8:9: error: expected unqualified-id before 'for'
    8 |         for (i = 100000; i >= 0; i--)
      |         ^~~
foo.cc:8:26: error: 'i' does not name a type
    8 |         for (i = 100000; i >= 0; i--)
      |                          ^
foo.cc:8:34: error: 'i' does not name a type
    8 |         for (i = 100000; i >= 0; i--)
      |                                  ^
foo.cc:16:9: error: expected unqualified-id before 'for'
   16 |         for (i = 0; i < nb; i++)
      |         ^~~
foo.cc:16:21: error: 'i' does not name a type
   16 |         for (i = 0; i < nb; i++)
      |                     ^
foo.cc:16:29: error: 'i' does not name a type
   16 |         for (i = 0; i < nb; i++)
      |                             ^
foo.cc:17:29: error: 'j' does not name a type
   17 |                 for (j = 0; j < nx; j++)
      |                             ^
foo.cc:17:37: error: 'j' does not name a type
   17 |                 for (j = 0; j < nx; j++)
      |                                     ^
foo.cc:19:9: error: expected unqualified-id before 'for'
   19 |         for (i = 0; i < nb + nx + 1; i++)
      |         ^~~
foo.cc:19:21: error: 'i' does not name a type
   19 |         for (i = 0; i < nb + nx + 1; i++)
      |                     ^
foo.cc:19:38: error: 'i' does not name a type
   19 |         for (i = 0; i < nb + nx + 1; i++)
      |                                      ^
foo.cc:24:9: error: expected unqualified-id before 'for'
   24 |         for (i = 0; i < nb + nx + 1; i++)
      |         ^~~
foo.cc:24:21: error: 'i' does not name a type
   24 |         for (i = 0; i < nb + nx + 1; i++)
      |                     ^
foo.cc:24:38: error: 'i' does not name a type
   24 |         for (i = 0; i < nb + nx + 1; i++)
      |                                      ^
foo.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
foo.cc: In function 'int main()':
foo.cc:40:17: error: 'mul' was not declared in this scope
   40 |                 mul(b, xx, nx, k);
      |                 ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1072 A11-2 K进制的高精度整数
语言
C++
递交时间
2023-10-28 19:36:57
评测时间
2023-10-28 19:36:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes