Problem party_noi
User liliputian
Submission Time 2026-10-02 23:39:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:8:19: error: ‘floor’ is not a member of ‘std’
8 | L friends = std::floor((n + 1)/2), ans(0);
| ^~~~~
party_noi.cpp:13:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
13 | ans += a[n - i - 1];
| ^~~
| abs
party_noi.cpp:15:15: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | std::cout << ans;
| ^~~
| abs