ballparade.cpp: In function ‘int main()’:
ballparade.cpp:9:15: error: expected initializer before ‘.’ token
int n, ord. score=0
^
ballparade.cpp:11:5: error: ‘base’ was not declared in this scope
base[0] = base[1] = base[2] = base[3] = false;
^
ballparade.cpp:14:22: error: ‘ord’ was not declared in this scope
scanf("%d", &ord);
^
ballparade.cpp:30:38: error: ‘score’ was not declared in this scope
if(base[0]) base[0] = false, score++;
^
ballparade.cpp:32:20: error: ‘score’ was not declared in this scope
printf("%d\n", score);
^
ballparade.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^