Problem sortingtrainers
User LCJLY
Submission Time 2023-11-27 15:08:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sortingtrainers.cpp: In function ‘void solve()’:
sortingtrainers.cpp:33:6: error: redeclaration of ‘long long int counter’
33 | int counter=0;
| ^~~~~~~
sortingtrainers.cpp:32:6: note: ‘long long int counter’ previously declared here
32 | int counter=0;
| ^~~~~~~
sortingtrainers.cpp:43:17: error: ‘counter2’ was not declared in this scope; did you mean ‘counter’?
43 | else if(zero) counter2++;
| ^~~~~~~~
| counter
sortingtrainers.cpp:46:22: error: ‘counter2’ was not declared in this scope; did you mean ‘counter’?
46 | cout << min(counter,counter2);
| ^~~~~~~~
| counter