Problem | diesel |
---|---|
User | TheInvadr |
Submission Time | 2025-01-04 20:46:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diesel.cpp: In function ‘void readinput(int*, int*, int***)’:
diesel.cpp:16:19: error: invalid conversion from ‘void*’ to ‘int**’ [-fpermissive]
16 | (*A) = malloc ( (*m) * sizeof (int*));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
diesel.cpp:20:24: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
20 | (*A)[i] = malloc ( (*n) * sizeof(int));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| void*
diesel.cpp: In function ‘int TD(int, int, int**)’:
diesel.cpp:32:48: error: ‘cin’ was not declared in this scope
32 | for(int i =0;i<n;i++)for(int j =0 ;j<m;j++)cin>>arr[i][j];
| ^~~
diesel.cpp:42:54: error: ‘max’ was not declared in this scope
42 | if(arr[i][j]>=arr[i][j+1])dp[i][j+1]=max(dp