Problem | diamond_usaco |
---|---|
User | ATHY |
Submission Time | 2025-02-21 21:17:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diamond_usaco.cpp: In function ‘int main()’:
diamond_usaco.cpp:25:40: error: no match for call to ‘(std::vector<long long int>) (__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
25 | maxleft[i] = max(maxleft[i-1], max[i]);
| ^
diamond_usaco.cpp:29:37: error: no match for call to ‘(std::vector<long long int>) (long long int&, __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type)’
29 | ans= max(ans,maxleft[i] + max[i+1]);
| ^
diamond_usaco.cpp: At global scope:
diamond_usaco.cpp:39:1: error: expected declaration before ‘}’ token
39 | }
| ^