Problem flappyrabbit
User bz
Submission Time 2024-03-19 21:40:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flappyrabbit.cpp:5:11: error: ‘cin’ does not name a type
5 | int n, q; cin >> n >> q;
| ^~~
flappyrabbit.cpp: In function ‘void init(std::vector<int>, std::vector<int>)’:
flappyrabbit.cpp:9:13: error: ‘cin’ was not declared in this scope
9 | int a, b; cin >> a >> b;
| ^~~
flappyrabbit.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include "flappyrabbit.h"
+++ |+#include <iostream>
2 | #include <vector>