Problem democracy
User BrainrotKid
Submission Time 2026-02-23 16:23:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

democracy.cpp: In function ‘int main()’:
democracy.cpp:21:16: error: assignment of read-only location ‘std::max<long long int, long long int>(a, b, c)’
21 | if(max(a,b,c)=a){
| ~~~~~~~~~~^~
democracy.cpp:24:21: error: assignment of read-only location ‘std::max<long long int, long long int>(a, b, c)’
24 | else if(max(a,b,c)=b){
| ~~~~~~~~~~^~
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from democracy.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of ‘constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]’:
democracy.cpp:21:15: required from here
/usr/include/c++/9/bits/stl_algobase.h:271:17: error: ‘__comp’ cannot be used as a function
271 | if (__com