/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:42: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |         for (int i = 0; i <= 99999; i++) num[i] = 0;
      |                                          ^~~
      |                                          enum
/in/foo.cc:13:42: error: 'b' was not declared in this scope
   13 |             for (int j = 0; j < 10; j++) b[j] = 0; // 修正初始化 b 数组
      |                                          ^
/in/foo.cc:14:20: error: 'a' was not declared in this scope
   14 |             cin >> a[i];
      |                    ^
/in/foo.cc:17:21: error: 'zs' was not declared in this scope
   17 |                 if (zs(a[i][j] - '0') == 1)
      |                     ^~
/in/foo.cc:18:21: error: 'b' was not declared in this scope
   18 |                     b[a[i][j] - '0']++;
      |                     ^
/in/foo.cc:21:21: error: 'b' was not declared in this scope
   21 |                 if (b[j] > 0) num[i]++;
      |                     ^
/in/foo.cc:21:31: error: 'num' was not declared in this scope; did you mean 'enum'?
   21 |                 if (b[j] > 0) num[i]++;
      |                               ^~~
      |                               enum
/in/foo.cc:26:17: error: 'num' was not declared in this scope; did you mean 'enum'?
   26 |             if (num[temp] < num[i]) {
      |                 ^~~
      |                 enum
/in/foo.cc:30:28: error: 'a' was not declared in this scope
   30 |                 if (strcmp(a[temp], a[i]) > 0) {
      |                            ^
/in/foo.cc:35:17: error: 'a' was not declared in this scope
   35 |         cout << a[temp] << endl; // 使用 cout 输出
      |                 ^

信息

递交者
类型
递交
题目
P1079 美丽的数
语言
C++
递交时间
2024-03-26 19:14:56
评测时间
2024-03-26 19:14:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes