Problem duckhunt30
User shenshiqi
Submission Time 2025-12-10 09:58:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt30.cpp: In function ‘int main()’:
duckhunt30.cpp:67:2: error: ‘vector’ was not declared in this scope
67 | vector <ll> bf(n, 0);
| ^~~~~~
duckhunt30.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
duckhunt30.cpp:3:12: error: expected primary-expression before ‘long’
3 | #define ll long long
| ^~~~
duckhunt30.cpp:67:10: note: in expansion of macro ‘ll’
67 | vector <ll> bf(n, 0);
| ^~
duckhunt30.cpp:80:6: error: ‘bf’ was not declared in this scope
80 | bf[i] += (((l - i)*x + y)%mod);
| ^~
duckhunt30.cpp:95:14: error: ‘bf’ was not declared in this scope
95 | sum += (bf[i]%mod);
| ^~