Help me Guys ! --> "exit status 1 expected ',' or '...' before numeric constant"

My error is ->
void srv( int p11, int p21, int p31, int p41, int p12, int p22, int p32, int p42,int p13, int p23, int p33, int 43, int sp1, int sp2, int sp3, int sp4)

"exit status 1
expected ',' or '...' before numeric constant"

When an error occurs, the orange bar above the output window shows a button 'copy error messages'; click it and next post the full error message here.

We will also need your code; in the IDE, use tools-> auto format and next use edit -> copy for forum; paste the result here.

I've moved your topic to the Programming section where it will get the exposure that it deserves.

1 Like
int 43

A variable/parameter name cannot start with a digit. Did you mean "p43"?


Good catch

Its really good to learn to read code - properly read it, spotting errors. This is actually harder than writing code at first - your eye will eventually become trained to home in
on errors and dodgy style intuitively.

My immediate reaction to that line of code is - "don't pass so many values, pass an array
or define a datastructure to hold the information". Long lists are easy places for an error
to slip in, and are hard to read.

1 Like

Yesss boy, thaks very much

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.