| Problem | lightsout2 |
|---|---|
| User | MiloDino67 |
| Submission Time | 2026-11-15 22:24:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightsout2.cpp: In function ‘int main()’:
lightsout2.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int>a(n,0);
| ^~~~~~
lightsout2.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <map>
+++ |+#include <vector>
3 | using namespace std;
lightsout2.cpp:4:13: error: expected primary-expression before ‘long’
4 | #define int long long
| ^~~~
lightsout2.cpp:7:12: note: in expansion of macro ‘int’
7 | vector<int>a(n,0);
| ^~~
lightsout2.cpp:9:16: error: ‘a’ was not declared in this scope
9 | cin >> a[i];
| ^
lightsout2.cpp:13:17: error: ‘a’ was not declared in this scope
13 | int r = a[i]-1;
| ^