Problem labels
User 2Princes1Lance
Submission Time 2024-02-29 17:06:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

labels.cpp: In function ‘int main()’:
labels.cpp:33:38: error: use of deleted function ‘std::atomic<long int>& std::atomic<long int>::operator=(const std::atomic<long int>&)’
33 | if (max < ans[i]) max = ans[i];
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:100,
from labels.cpp:1:
/usr/include/c++/9/atomic:802:15: note: declared here
802 | atomic& operator=(const atomic&) = delete;
| ^~~~~~~~