Problem duckhunt21
User shoryu386
Submission Time 2025-12-05 13:41:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt21.cpp: In function ‘int add(int, int)’:
duckhunt21.cpp:25:16: error: ‘MOD’ was not declared in this scope
25 | if (a+b >= MOD) return a+b-MOD;
| ^~~
duckhunt21.cpp: In function ‘int main()’:
duckhunt21.cpp:58:37: error: too few arguments to function ‘int add(int, int)’
58 | v[x].push_back( add(val + arr[x]) );
| ^
duckhunt21.cpp:24:12: note: declared here
24 | inline int add(int a, int b){
| ^~~
duckhunt21.cpp:86:37: error: too few arguments to function ‘int add(int, int)’
86 | v[x].push_back( add(val + arr[x]) );
| ^
duckhunt21.cpp:24:12: note: declared here
24 | inline int add(int a, int b){
| ^~~