| Problem | OrXor |
|---|---|
| User | YSH2020 |
| Submission Time | 2023-12-16 15:45:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
OrXor.cpp: In function ‘int main()’:
OrXor.cpp:7:11: error: ‘i’ was not declared in this scope
7 | int a[i];
| ^
OrXor.cpp:8:40: error: ‘a’ was not declared in this scope
8 | for (int i = 0; i < n; i++) cin >> a[i];
| ^
OrXor.cpp:13:40: error: ‘a’ was not declared in this scope
13 | if (i&(1 << j) == 0) x = x|a[j];
| ^
OrXor.cpp:14:24: error: ‘a’ was not declared in this scope
14 | else y = y|a[j];
| ^