记录详情

Compile Error

foo.cc:6:5: error: expected initializer before 'int'
    6 |     int a, b;
      |     ^~~
foo.cc:7:5: error: 'cin' does not name a type; did you mean 'sin'?
    7 |     cin >> a >> b;
      |     ^~~
      |     sin
foo.cc:8:5: error: expected unqualified-id before 'for'
    8 |     for (int i = a; i <= b; i++)
      |     ^~~
foo.cc:8:21: error: 'i' does not name a type
    8 |     for (int i = a; i <= b; i++)
      |                     ^
foo.cc:8:29: error: 'i' does not name a type
    8 |     for (int i = a; i <= b; i++)
      |                             ^
foo.cc:18:5: error: expected unqualified-id before 'for'
   18 |     for (int i = 1; i <= 9; i++)
      |     ^~~
foo.cc:18:21: error: 'i' does not name a type; did you mean 'id'?
   18 |     for (int i = 1; i <= 9; i++)
      |                     ^
      |                     id
foo.cc:18:29: error: 'i' does not name a type; did you mean 'id'?
   18 |     for (int i = 1; i <= 9; i++)
      |                             ^
      |                             id
foo.cc:21:5: error: 'cout' does not name a type
   21 |     cout << id;
      |     ^~~~
foo.cc:22:5: error: expected unqualified-id before 'return'
   22 |     return 0;
      |     ^~~~~~
foo.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
3-1 整数中的数字
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 19:34:50
评测时间
2022-07-28 19:34:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes