QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#474283 | #3098. Ancient Machine | egypt_ioi2024b_04 | Compile Error | / | / | C++20 | 2.7kb | 2024-07-12 17:06:49 | 2024-07-12 17:06:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Anna.code:4:7: error: expected nested-name-specifier before ‘namepsace’ 4 | using namepsace std; | ^~~~~~~~~ Anna.code: In function ‘void Anna(int, std::vector<char>)’: Anna.code:12:5: error: ‘vector’ was not declared in this scope 12 | vector<bool> ar(N, false); | ^~~~~~ Anna.code:12:5: note: suggested alternatives: In file included from /usr/include/c++/10/vector:67, from Anna.h:1, from Anna.code:1: /usr/include/c++/10/bits/stl_vector.h:389:11: note: ‘std::vector’ 389 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ In file included from Anna.h:1, from Anna.code:1: /usr/include/c++/10/vector:86:13: note: ‘std::pmr::vector’ 86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ Anna.code:12:12: error: expected primary-expression before ‘bool’ 12 | vector<bool> ar(N, false); | ^~~~ Anna.code:19:13: error: ‘ar’ was not declared in this scope 19 | ar[i] = !f; | ^~ Anna.code:24:25: error: ‘ar’ was not declared in this scope 24 | if (S[i] == 'Z')ar[i] = true; | ^~ Anna.code:26:14: error: expected primary-expression before ‘>’ token 26 | vector<ll> v(41, 0); | ^ Anna.code:26:16: error: ‘v’ was not declared in this scope 26 | vector<ll> v(41, 0); | ^ Anna.code:31:22: error: ‘max’ was not declared in this scope 31 | v[i] = 1ll + max(sum[0], sum[1]); | ^~~ Anna.code:31:22: note: suggested alternatives: In file included from /usr/include/c++/10/vector:62, from Anna.h:1, from Anna.code:1: /usr/include/c++/10/bits/stl_algo.h:3491:5: note: ‘std::max’ 3491 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from /usr/include/c++/10/algorithm:64, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65, from Anna.code:2: /usr/include/c++/10/bits/ranges_algo.h:3219:29: note: ‘std::ranges::max’ 3219 | inline constexpr __max_fn max{}; | ^~~ Anna.code:36:24: error: ‘min’ was not declared in this scope 36 | int l = i, r = min(N-1, i + 39); | ^~~ Anna.code:36:24: note: suggested alternatives: In file included from /usr/include/c++/10/vector:62, from Anna.h:1, from Anna.code:1: /usr/include/c++/10/bits/stl_algo.h:3479:5: note: ‘std::min’ 3479 | min(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from /usr/include/c++/10/algorithm:64, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65, from Anna.code:2: /usr/include/c++/10/bits/ranges_algo.h:3165:29: note: ‘std::ranges::min’ 3165 | inline constexpr __min_fn min{}; | ^~~ Anna.code:39:17: error: ‘ar’ was not declared in this scope; did you mean ‘r’? 39 | if (ar[j])sm += v[j-l]; | ^~ | r