Problem supperbox
User Sans12345
Submission Time 2023-09-27 08:30:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

supperbox.cpp: In function ‘int main()’:
supperbox.cpp:55:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
55 | if(dp[C[A[i]]] <= X[i]) ans[i] = dp[S[A[i]]];
| ^
supperbox.cpp:55:56: error: invalid conversion from ‘ll*’ {aka ‘long long int*’} to ‘ll’ {aka ‘long long int’} [-fpermissive]
55 | if(dp[C[A[i]]] <= X[i]) ans[i] = dp[S[A[i]]];
| ~~~~~~~~~~^
| |
| ll* {aka long long int*}