Problem | OrXor |
---|---|
User | blob |
Submission Time | 2023-12-08 17:59:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
OrXor.cpp:2:1: error: ‘sing’ does not name a type; did you mean ‘sinl’?
2 | sing namespace std;
| ^~~~
| sinl
OrXor.cpp:3:17: error: ‘vector’ does not name a type
3 | int solve(const vector<int>& A, int index, int currentXOR, int currentOR) {
| ^~~~~~
OrXor.cpp:3:23: error: expected ‘,’ or ‘...’ before ‘<’ token
3 | int solve(const vector<int>& A, int index, int currentXOR, int currentOR) {
| ^
OrXor.cpp: In function ‘int solve(int)’:
OrXor.cpp:4:18: error: ‘A’ was not declared in this scope
4 | if (index == A.size()) {
| ^
OrXor.cpp:5:16: error: ‘currentXOR’ was not declared in this scope
5 | return currentXOR;
| ^~~~~~~~~~
OrXor.cpp:8:25: error: ‘A’ was not declared in this scope
8 | int option1 = solve(A, index + 1, currentXOR ^ A[index], currentOR | A[index]);
|