Problem | localexpress |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-05 01:38:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
localexpress.cpp:5:1: error: ‘vector’ does not name a type
5 | vector<vector<int> > dp;
| ^~~~~~
localexpress.cpp: In function ‘int express(int, int)’:
localexpress.cpp:11:6: error: ‘dp’ was not declared in this scope
11 | if (dp[index][count]!=-1){
| ^~
localexpress.cpp:18:2: error: ‘dp’ was not declared in this scope
18 | dp[index][count] = (sum+express(index+1, 0))%MOD;
| ^~
localexpress.cpp: In function ‘int main()’:
localexpress.cpp:23:2: error: ‘cin’ was not declared in this scope
23 | cin>>n>>k;
| ^~~
localexpress.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
localexpress.cpp:24:2: error: ‘dp’ was not declared in this scope
24 | dp.resize(n, vector<int>(k, -1));
| ^~
localexpress.cpp:24:15: error: ‘vector