Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:12: error: expected ';' before 'bool'
    7 |  cin >> num
      |            ^
      |            ;
    8 | 
    9 |   bool flag = 1;
      |   ~~~~      
/in/foo.cc:26:6: error: 'flag' was not declared in this scope
   26 |      flag = 0; break;
      |      ^~~~
/in/foo.cc:30:6: error: 'flag' was not declared in this scope
   30 |      flag = 1; break;
      |      ^~~~
/in/foo.cc:33:9: error: 'flag' was not declared in this scope
   33 |    if (!flag)
      |         ^~~~
  信息
- 递交者
- 类型
- 递交
- 题目
- P1074 最小的回文数
- 语言
- C++
- 递交时间
- 2024-12-21 00:12:31
- 评测时间
- 2024-12-21 00:12:31
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes