Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int i;
    int length=0;
    char op[10000];
    int a[10000];
    int b[10000];
    int answer[10000];
    do{
        scanf("%d %s %d", &a[i], &op[i], &b[i]);
        length += 1;
    }while(op != "?");
    for(i=0; i<length-1; i++){
        switch(op[i]){
            case "+": answer[i] = a + b; break;
            case "-": answer[i] = a - b; break;
            case "*": answer[i] = a * b; break;
            case "/": answer[i] = a / b; break;
            default : break;
        }
        printf("%d\n", answer[i]);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   16 |             case "+": answer[i] = a + b; break;
      |                  ^~~
a.cc:16:18: error: could not convert '"+"' from 'const char [2]' to 'int'
   16 |             case "+": answer[i] = a + b; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:16:37: error: invalid operands of types 'int [10000]' and 'int [10000]' to binary 'operator+'
   16 |             case "+": answer[i] = a + b; break;
      |                                   ~ ^ ~
      |                                   |   |
      |                                   |   int [10000]
      |                                   int [10000]
a.cc:17:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   17 |             case "-": answer[i] = a - b; break;
      |                  ^~~
a.cc:17:18: error: could not convert '"-"' from 'const char [2]' to 'int'
   17 |             case "-": answer[i] = a - b; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:18:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   18 |             case "*": answer[i] = a * b; break;
      |                  ^~~
a.cc:18:18: error: could not convert '"*"' from 'const char [2]' to 'int'
   18 |             case "*": answer[i] = a * b; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:18:37: error: invalid operands of types 'int [10000]' and 'int [10000]' to binary 'operator*'
   18 |             case "*": answer[i] = a * b; break;
      |                                   ~ ^ ~
      |                                   |   |
      |                                   |   int [10000]
      |                                   int [10000]
a.cc:19:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   19 |             case "/": answer[i] = a / b; break;
      |                  ^~~
a.cc:19:18: error: could not convert '"/"' from 'const char [2]' to 'int'
   19 |             case "/": answer[i] = a / b; break;
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:19:37: error: invalid operands of types 'int [10000]' and 'int [10000]' to binary 'operator/'
   19 |             case "/": answer[i] = a / b; break;
      |                                   ~ ^ ~
      |                                   |   |
      |                                   |   int [10000]
      |                                   int [10000]