Problem | rotarylock |
---|---|
User | bakchormee |
Submission Time | 2024-04-30 16:44:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rotarylock.cpp:5:30: error: expected ‘,’ or ‘...’ before ‘.’ token
5 | ll getSum(ll tree[], ll index. ll grad){
| ^
rotarylock.cpp: In function ‘long long int getSum(long long int*, long long int)’:
rotarylock.cpp:8:31: error: ‘grad’ was not declared in this scope
8 | sum = (sum + tree[index]) % grad;
| ^~~~
rotarylock.cpp: In function ‘int main()’:
rotarylock.cpp:34:32: error: too many arguments to function ‘long long int getSum(long long int*, long long int)’
34 | cout << getSum(tree, d, grad) % grad << "\n";
| ^
rotarylock.cpp:5:4: note: declared here
5 | ll getSum(ll tree[], ll index. ll grad){
| ^~~~~~