Problem | stoning |
---|---|
User | MintTea |
Submission Time | 2024-01-26 14:27:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
stoning.cpp: In function ‘int32_t main()’:
stoning.cpp:27:23: error: the value of ‘N’ is not usable in a constant expression
27 | string bR = bitset<N>(i).to_string();
| ^
stoning.cpp:7:6: note: ‘long long int N’ is not const
7 | int N, K;
| ^
stoning.cpp:27:23: note: in template argument for type ‘long unsigned int’
27 | string bR = bitset<N>(i).to_string();
| ^
stoning.cpp:31:26: error: ‘indext’ was not declared in this scope; did you mean ‘index’?
31 | maxans2 += options[i][indext];
| ^~~~~~
| index
stoning.cpp:33:26: error: no matching function for call to ‘stoi(__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type&)’
33 | int indext = stoi(bR[i]);
| ^
In file included from /usr/include/c++/9/string:55,