Problem | childsetter3 |
---|---|
User | JJ1234 |
Submission Time | 2024-12-21 11:58:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
childsetter3.cpp: In lambda function:
childsetter3.cpp:39:9: error: redeclaration of ‘int result’
39 | int result = countValidSubarrays(k) - countValidSubarrays(k - 1);
| ^~~~~~
childsetter3.cpp:17:43: note: ‘int result’ previously declared here
17 | int distinctCount = 0, start = 0, result = 0;
| ^~~~~~
childsetter3.cpp:39:18: error: use of ‘countValidSubarrays’ before deduction of ‘auto’
39 | int result = countValidSubarrays(k) - countValidSubarrays(k - 1);
| ^~~~~~~~~~~~~~~~~~~
childsetter3.cpp:39:43: error: use of ‘countValidSubarrays’ before deduction of ‘auto’
39 | int result = countValidSubarrays(k) - countValidSubarrays(k - 1);
| ^~~~~~~~~~~~~~~~~~~
childsetter3.cpp: In function ‘int main()’:
childsetter3.cpp:44:1: error: expected ‘,’ or ‘;’ at end of input
44 | }