Problem cudak
User chenweilian
Submission Time 2023-05-08 17:59:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cudak.cpp: In function ‘ll rec(ll, int, int)’:
cudak.cpp:25:7: error: ‘flag’ was not declared in this scope
25 | if(flag && memo[digits][sum] != -1 ) return memo[digits][sum];
| ^~~~
cudak.cpp:30:7: error: ‘flag’ was not declared in this scope
30 | if(flag) memo[digits][sum] = ret;
| ^~~~
cudak.cpp: In function ‘int main()’:
cudak.cpp:39:4: error: ‘cin’ was not declared in this scope
39 | cin>>A>>B>>S;
| ^~~
cudak.cpp:41:4: error: ‘cout’ was not declared in this scope
41 | cout<<rec(0, 15, S)<<endl<<min_solution;
| ^~~~
cudak.cpp:41:25: error: ‘endl’ was not declared in this scope
41 | cout<<rec(0, 15, S)<<endl<<min_solution;
| ^~~~