Problem democracy
User CXKNB
Submission Time 2024-06-21 13:45:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

democracy.cpp: In function ‘int main()’:
democracy.cpp:27:14: error: invalid array assignment
27 | newarr = arr;
| ^~~
democracy.cpp:28:42: error: expected ‘;’ before ‘if’
28 | sort(newarr, newarr+3,greater<int>())
| ^
| ;
29 | if(newarr[0]==newarr[1]or newarr[1]==newarr[2]){
| ~~
democracy.cpp:37:5: error: ‘else’ without a previous ‘if’
37 | else{
| ^~~~