Problem conductslip
User asbx
Submission Time 2024-01-02 07:24:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conductslip.cpp: In function ‘int main()’:
conductslip.cpp:24:14: error: expected primary-expression before ‘=’ token
24 | #define LLINF=(ll)(1e18)
| ^
conductslip.cpp:76:25: note: in expansion of macro ‘LLINF’
76 | ll maxhappy=(ll)((-1)*(LLINF));
| ^~~~~
conductslip.cpp:79:6: error: ‘C’ was not declared in this scope
79 | if(C-i>N) continue;
| ^
conductslip.cpp:85:14: error: invalid types ‘ll {aka long long int}[ll {aka long long int}]’ for array subscript
85 | happy-=S[i];
| ^