c++ error: expected ‘,’ or ‘...’ before ‘distances’ -
I get an error on the first line of the following code is an error
Error: Before 'distance', '', 'or' ... 'is expected and I do not really get it wrong with it. I am using ideone, if he helps, but I do not think that is causing this problem. vector & lt; String & gt; For most (beatset and lieutenant; 4> treasury, gap distance, string path, ntp, int [] distance, string [] path) {for (int i = 1; i ++) { If (100 & gt; = distance [p] * 4 + 1 + i] + distance [i * 5 + 1]) (most (treasure, distance + distance [p * 4 + 1 + i], path .append Path [p * 4 + 1 + i]), i, distance, path);}} vector test; return exam;} << Code>
Change these parameter declarations
int [] distance, string [] path
to
integer Prior [], string path []
Syntax usage is valid in C ++ in C ++.
Are you sure the function is valid? Returns an empty vector and note that the original object will not be used as the logic path because it is passed by the value of the function
Comments
Post a Comment