Problem | democracy |
---|---|
User | om2024 |
Submission Time | 2024-06-21 13:36:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
democracy.cpp: In function ‘int mostFrequentNum(int*, int)’:
democracy.cpp:5:18: error: expected ‘;’ before ‘<’ token
5 | for(int j = 0, j < n; j++) {
| ^~
| ;
democracy.cpp:5:19: error: expected primary-expression before ‘<’ token
5 | for(int j = 0, j < n; j++) {
| ^
democracy.cpp:6:16: error: ‘i’ was not declared in this scope
6 | elements[arr[i]]++;
| ^