Problem party_noi
User radityaID
Submission Time 2025-02-03 16:32:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘void solve()’:
party_noi.cpp:8:10: error: expected ‘;’ before numeric constant
8 | return;1 1
| ^~
| ;
party_noi.cpp: In function ‘int main()’:
party_noi.cpp:30:8: error: expected ‘(’ before ‘ct’
30 | while ct <= n:
| ^~
| (
party_noi.cpp:30:15: error: found ‘:’ in nested-name-specifier, expected ‘::’
30 | while ct <= n:
| ^
| ::
party_noi.cpp:30:14: error: ‘n’ is not a class, namespace, or enumeration
30 | while ct <= n:
| ^
party_noi.cpp:31:30: error: no matching function for call to ‘max(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, int)’
31 | max_happi += max(a[n-ct], 0);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/in