Language: C++

#include<iostream>
using namespace std;
int main() {
????????int a[10000];
????????int b, x;
????????for (int i=0;;i++){
????????????????cin >> b;
????????????????if (b == 0||i==9999) {
????????????????????????x = i;
????????????????????????break; 
????????????????}
????????????????a[i] = b;
????????}
????????for (int i = 0; i < x; i++){
????????????????cout << "Case " << i << ": " << a[i] << "\n";
????????}
????????cin >> x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      | ^
a.cc:4:2: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |  ^
a.cc:4:3: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |   ^
a.cc:4:4: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |    ^
a.cc:4:5: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |     ^
a.cc:4:6: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |      ^
a.cc:4:7: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |       ^
a.cc:4:8: error: expected primary-expression before '?' token
    4 | ????????int a[10000];
      |        ^
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:4:9: error: expected ':' before 'int'
    4 | ????????int a[10000];
      |         ^~~
      |         :
a.cc:4:9: error: expected primary-expression before 'int'
    4 | ????????int a[10000];
      |         ^~~
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |   ^
a.cc:5:4: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |    ^
a.cc:5:5: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |     ^
a.cc:5:6: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |      ^
a.cc:5:7: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |       ^
a.cc:5:8: error: expected primary-expression before '?' token
    5 | ????????int b, x;
      |        ^
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:5:9: error: expected ':' before 'int'
    5 | ????????int b, x;
      |         ^~~
      |         :
a.cc:5:9: error: expected primary-expression before 'int'
    5 | ????????int b, x;
      |         ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |   ^
a.cc:6:4: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |    ^
a.cc:6:5: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |     ^
a.cc:6:6: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |      ^
a.cc:6:7: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |       ^
a.cc:6:8: error: expected primary-expression before '?' token
    6 | ????????for (int i=0;;i++){
      |        ^
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:9: error: expected ':' before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
      |         :
a.cc:6:9: error: expected primary-expression before 'for'
    6 | ????????for (int i=0;;i++){
      |         ^~~
a.cc:6:23: error: 'i' was not declared in this scope
    6 | ????????for (int i=0;;i++){
      |                       ^
a.cc:14:1: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      | ^
a.cc:14:2: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |  ^
a.cc:14:3: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |   ^
a.cc:14:4: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |    ^
a.cc:14:5: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |     ^
a.cc:14:6: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |      ^
a.cc:14:7: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |       ^
a.cc:14:8: error: expected primary-expression before '?' token
   14 | ????????for (int i = 0; i < x; i++){
      |        ^
a.cc:14:9: error: expected primary-expression before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
a.cc:14:9: error: expected ':' before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
      |         :
a.cc:14:9: error: expected primary-expression before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
a.cc:14:9: error: expected ':' before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
      |         :
a.cc:14:9: error: expected primary-expression before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
a.cc:14:9: error: expected ':' before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
      |         :
a.cc:14:9: error: expected primary-expression before 'for'
   14 | ????????for (int i = 0; i < x; i++){
      |         ^~~
a.cc:14:9: error: expected ':' before 'for'
   14 | ????????for (int i = 0; i