New answers tagged function
0
votes
Error when calling seconnd function - expected expression
It's a scope issue. k is declared inside the curly braces of the FOR loop. That means that when the code exits the for loop, k will cease to exist.
K should be declared outside of any loops or if ...
Top 50 recent answers are included
Related Tags
function × 67c × 12
pset3 × 9
pset6 × 6
load × 6
error × 6
compilation-error × 4
variables × 4
week2 × 4
main × 4
void × 4
pset2 × 3
pset5 × 3
pset1 × 3
speller × 3
fifteen × 3
array × 3
boolean × 3
pset4 × 2
cs50x × 2
caesar × 2
segmentation-fault × 2
greedy × 2
server × 2
cs50-ide × 2