Expected Identifier Before Numeric Constant

Compilation error: "expected primary-expression before ' '" when trying to specify argument type in a function call Asked 13 years, 9 months ago Modified 3 years, 3 months ago Viewed 228k times

expected identifier before numeric constant 1

Expected: end of statement Says exactly that. Everything before " (" is a perfectly valid instruction, except it's not terminated. So it's not the " (", it's the type hints. Insert spaces to separate the operators from the operands, and you'll fix the problem. More explicitness couldn't hurt, either:

expected identifier before numeric constant 2