Problem | goodseq |
---|---|
User | StormyGood |
Submission Time | 2024-11-12 09:49:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goodseq.cpp: In function ‘int main()’:
goodseq.cpp:21:11: error: ‘x’ was not declared in this scope
21 | for ([x, count] : freq)
| ^
goodseq.cpp:21:14: error: capture of non-variable ‘std::count’
21 | for ([x, count] : freq)
| ^~~~~
goodseq.cpp: In lambda function:
goodseq.cpp:21:21: error: expected ‘{’ before ‘:’ token
21 | for ([x, count] : freq)
| ^
goodseq.cpp: In function ‘int main()’:
goodseq.cpp:21:20: error: expected ‘;’ before ‘:’ token
21 | for ([x, count] : freq)
| ^~
| ;
goodseq.cpp:34:1: error: expected primary-expression before ‘}’ token
34 | }
| ^
goodseq.cpp:33:25: error: expected ‘)’ before ‘}’ token
33 | cout << sum << endl;
| ^
| )
34 | }
| ~