Problem | stepgame |
---|---|
User | ryansoh |
Submission Time | 2023-07-24 22:14:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
stepgame.cpp: In function ‘int main()’:
stepgame.cpp:18:42: error: cannot convert ‘long long int*’ to ‘int*’
18 | for (int j=i; j<n; j++) ans=min(arrsum(arr,j,n),ans);
| ^~~
| |
| long long int*
stepgame.cpp:6:15: note: initializing argument 1 of ‘long long int arrsum(int*, int, int)’
6 | ll arrsum(int arr[], int start, int end) {
| ~~~~^~~~~