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