Language: C++

#include <iostream>
#include <string>
#include <vector>

int main()
{
	int a[128], b[128], result[128];
	char m[256] = {0};
	int i = 0;
	int I = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
		std::cin >> a[i] >> m[i] >> b[i]; 
		i++;
	}
	i = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[I] != "?") {
		if (m[I] == "+") {
			result[i] = a[i] + b[i]; 
		}
		else if(m[I] == "-"){
			result[i] = a[i] - b[i];
		}
		else if (m[I] == "*") {
			result[i] = a[i] * b[i];
		}
		else{
			result[i] = a[i] / b[i];
		}
		i++;
		I += 2;
	}
	i = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
		std::cout << result[i] << endl;
		i++;
	}
return 0#include <iostream>
#include <string>
#include <vector>

int main()
{
	int a[128], b[128], result[128];
	char m[256] = {0};
	int i = 0;
	int I = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
		std::cin >> a[i] >> m[i] >> b[i]; 
		i++;
	}
	i = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[I] != "?") {
		if (m[I] == "+") {
			result[i] = a[i] + b[i]; 
		}
		else if(m[I] == "-"){
			result[i] = a[i] - b[i];
		}
		else if (m[I] == "*") {
			result[i] = a[i] * b[i];
		}
		else{
			result[i] = a[i] / b[i];
		}
		i++;
		I += 2;
	}
	i = 0;
	
	while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
		std::cout << result[i] << endl;
		i++;
	}
return 0;
}
;
}

Compiler output:
a.cc:40:9: error: stray '#' in program
   40 | return 0#include <iostream>
      |         ^
a.cc: In function 'int main()':
a.cc:12:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
      |                                          ~~~~~^~~~~~
a.cc:18:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         while (a[i] != 0 || b[i] != 0 || m[I] != "?") {
      |                                          ~~~~~^~~~~~
a.cc:19:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if (m[I] == "+") {
      |                     ~~~~~^~~~~~
a.cc:22:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |                 else if(m[I] == "-"){
      |                         ~~~~~^~~~~~
a.cc:25:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |                 else if (m[I] == "*") {
      |                          ~~~~~^~~~~~
a.cc:36:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |         while (a[i] != 0 || b[i] != 0 || m[i] != "?") {
      |                                          ~~~~~^~~~~~
a.cc:37:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   37 |                 std::cout << result[i] << endl;
      |                                           ^~~~
      |                                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:40:9: error: expected ';' before 'include'
   40 | return 0#include <iostream>
      |         ^~~~~~~~
      |         ;
a.cc:40:10: error: 'include' was not declared in this scope
   40 | return 0#include <iostream>
      |          ^~~~~~~
a.cc:40:19: error: 'iostream' was not declared in this scope; did you mean 'std::iostream'?
   40 | return 0#include <iostream>
      |                   ^~~~~~~~
      |                   std::iostream
In file included from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40:
/usr/include/c++/14/iosfwd:146:41: note: 'std::iostream' declared here
  146 |   typedef basic_iostream<char>          iostream;
      |                                         ^~~~~~~~
a.cc:44:1: error: expected primary-expression before 'int'
   44 | int main()
      | ^~~