Problem workload
User wtnetlegend
Submission Time 2025-03-10 09:42:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

workload.cpp: In function ‘long long int f(long long int, long long int)’:
workload.cpp:4:22: error: lvalue required as left operand of assignment
4 | if (b < 0) f(a,b) = 0;
| ^
workload.cpp:5:11: error: lvalue required as left operand of assignment
5 | f(0,0) = 0;
| ^
workload.cpp:6:11: error: lvalue required as left operand of assignment
6 | f(a,0) = 0;
| ^
workload.cpp:7:30: error: lvalue required as left operand of assignment
7 | f(a,b) = f(a-1, b)+ f(a, b-a)
| ^
workload.cpp: In function ‘int main()’:
workload.cpp:12:18: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
12 | cout << f(n, k) % (10E9 + 7);
| ~~~~~~~ ^ ~~~~~~~~~~
| | |
| long long int double