/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n >> k;
      |     ^~~
foo.cc:3:12: error: 'n' was not declared in this scope
    3 |     cin >> n >> k;
      |            ^
foo.cc:3:17: error: 'k' was not declared in this scope
    3 |     cin >> n >> k;
      |                 ^
foo.cc:5:16: error: 'a' was not declared in this scope
    5 |         cin >> a[i];
      |                ^
foo.cc:7:10: error: 'f' was not declared in this scope
    7 |     fill(f, f + N, INF);
      |          ^
foo.cc:7:17: error: 'N' was not declared in this scope
    7 |     fill(f, f + N, INF);
      |                 ^
foo.cc:7:20: error: 'INF' was not declared in this scope
    7 |     fill(f, f + N, INF);
      |                    ^~~
foo.cc:7:5: error: 'fill' was not declared in this scope
    7 |     fill(f, f + N, INF);
      |     ^~~~
foo.cc:10:13: error: 'a' was not declared in this scope
   10 |         if (a[i] < a[k])
      |             ^
foo.cc:11:15: error: 'lower_bound' was not declared in this scope
   11 |             f[lower_bound(f, f + n, a[i]) - f] = a[i];
      |               ^~~~~~~~~~~
foo.cc:12:17: error: 'lower_bound' was not declared in this scope
   12 |     int l_max = lower_bound(f, f + n, INF) - f;
      |                 ^~~~~~~~~~~
foo.cc:17:13: error: 'a' was not declared in this scope
   17 |         if (a[k] < a[i])
      |             ^
foo.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << l_max + 1 + r_max << endl;
      |     ^~~~
foo.cc:21:34: error: 'endl' was not declared in this scope
   21 |     cout << l_max + 1 + r_max << endl;
      |                                  ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1369 难解的问题
语言
C++
递交时间
2022-08-25 14:57:52
评测时间
2022-08-25 14:57:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes