Problem traineeline
User R9q5P8
Submission Time 2025-11-14 13:29:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

traineeline.cpp: In function ‘int main()’:
traineeline.cpp:38:14: error: found ‘:’ in nested-name-specifier, expected ‘::’
38 | for (output : outputs)
| ^
| ::
traineeline.cpp:38:7: error: ‘output’ is not a class, namespace, or enumeration
38 | for (output : outputs)
| ^~~~~~
traineeline.cpp:45:1: error: expected primary-expression before ‘}’ token
45 | }
| ^
traineeline.cpp:44:3: error: expected ‘;’ before ‘}’ token
44 | }
| ^
| ;
45 | }
| ~
traineeline.cpp:45:1: error: expected primary-expression before ‘}’ token
45 | }
| ^
traineeline.cpp:44:3: error: expected ‘)’ before ‘}’ token
44 | }
| ^
| )
45 | }
| ~
traineeline.cpp:38:6: note: to match this ‘(’
38 | for (output : outputs)
| ^
traineeline.cpp:45:1: error: expected primary-expression before ‘