Language: C++

#include<iostream>
using namespace std;
int main(){
		
	int km[10],v1,v2; char a;
&#160; &#160; double leng;
	while(1){
	 &#160; for(int i = 0; i < 10; i++)
&#160; &#160; &#160; &#160; {
&#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
&#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; if(!cin)
&#160; &#160; &#160; &#160; &#160; &#160; break;
&#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
&#160;
	leng = 0.0;
	for(int k =0;k<10;k++)
	leng += km[k];&#160;
	double length = leng * v1 / (v1 +v2);&#160;
	leng = 0.0; &#160;
	for(int k=0;k<10;k++){
	leng += &#160;km[k];
	if(leng >= length ){
	
	cout << k+1 <<endl; break;
	}
	}	
	}
}

Compiler output:
a.cc:6:2: error: stray '#' in program
    6 | &#160; &#160; double leng;
      |  ^
a.cc:6:9: error: stray '#' in program
    6 | &#160; &#160; double leng;
      |         ^
a.cc:8:11: error: stray '#' in program
    8 |          &#160; for(int i = 0; i < 10; i++)
      |           ^
a.cc:9:2: error: stray '#' in program
    9 | &#160; &#160; &#160; &#160; {
      |  ^
a.cc:9:9: error: stray '#' in program
    9 | &#160; &#160; &#160; &#160; {
      |         ^
a.cc:9:16: error: stray '#' in program
    9 | &#160; &#160; &#160; &#160; {
      |                ^
a.cc:9:23: error: stray '#' in program
    9 | &#160; &#160; &#160; &#160; {
      |                       ^
a.cc:10:2: error: stray '#' in program
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |  ^
a.cc:10:9: error: stray '#' in program
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |         ^
a.cc:10:16: error: stray '#' in program
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                ^
a.cc:10:23: error: stray '#' in program
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                       ^
a.cc:10:30: error: stray '#' in program
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                              ^
a.cc:10:37: error: stray '#' in program
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                                     ^
a.cc:11:2: error: stray '#' in program
   11 | &#160; &#160; &#160; &#160; }
      |  ^
a.cc:11:9: error: stray '#' in program
   11 | &#160; &#160; &#160; &#160; }
      |         ^
a.cc:11:16: error: stray '#' in program
   11 | &#160; &#160; &#160; &#160; }
      |                ^
a.cc:11:23: error: stray '#' in program
   11 | &#160; &#160; &#160; &#160; }
      |                       ^
a.cc:12:2: error: stray '#' in program
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |  ^
a.cc:12:9: error: stray '#' in program
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |         ^
a.cc:12:16: error: stray '#' in program
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |                ^
a.cc:12:23: error: stray '#' in program
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |                       ^
a.cc:13:2: error: stray '#' in program
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |  ^
a.cc:13:9: error: stray '#' in program
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |         ^
a.cc:13:16: error: stray '#' in program
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                ^
a.cc:13:23: error: stray '#' in program
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                       ^
a.cc:13:30: error: stray '#' in program
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                              ^
a.cc:13:37: error: stray '#' in program
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                                     ^
a.cc:14:2: error: stray '#' in program
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |  ^
a.cc:14:9: error: stray '#' in program
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |         ^
a.cc:14:16: error: stray '#' in program
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |                ^
a.cc:14:23: error: stray '#' in program
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |                       ^
a.cc:15:2: error: stray '#' in program
   15 | &#160;
      |  ^
a.cc:18:24: error: stray '#' in program
   18 |         leng += km[k];&#160;
      |                        ^
a.cc:19:47: error: stray '#' in program
   19 |         double length = leng * v1 / (v1 +v2);&#160;
      |                                               ^
a.cc:20:22: error: stray '#' in program
   20 |         leng = 0.0; &#160;
      |                      ^
a.cc:22:18: error: stray '#' in program
   22 |         leng += &#160;km[k];
      |                  ^
a.cc: In function 'int main()':
a.cc:6:3: error: lvalue required as unary '&' operand
    6 | &#160; &#160; double leng;
      |   ^~~
a.cc:6:10: error: lvalue required as unary '&' operand
    6 | &#160; &#160; double leng;
      |          ^~~
a.cc:8:12: error: lvalue required as unary '&' operand
    8 |          &#160; for(int i = 0; i < 10; i++)
      |            ^~~
a.cc:9:3: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; &#160; {
      |   ^~~
a.cc:9:10: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; &#160; {
      |          ^~~
a.cc:9:17: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; &#160; {
      |                 ^~~
a.cc:9:24: error: lvalue required as unary '&' operand
    9 | &#160; &#160; &#160; &#160; {
      |                        ^~~
a.cc:10:3: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |   ^~~
a.cc:10:10: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |          ^~~
a.cc:10:17: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                 ^~~
a.cc:10:24: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                        ^~~
a.cc:10:31: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                               ^~~
a.cc:10:38: error: lvalue required as unary '&' operand
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                                      ^~~
a.cc:10:53: error: 'i' was not declared in this scope
   10 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> km[i] >> a;
      |                                                     ^
a.cc:11:3: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; &#160; }
      |   ^~~
a.cc:11:10: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; &#160; }
      |          ^~~
a.cc:11:17: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; &#160; }
      |                 ^~~
a.cc:11:24: error: lvalue required as unary '&' operand
   11 | &#160; &#160; &#160; &#160; }
      |                        ^~~
a.cc:12:3: error: lvalue required as unary '&' operand
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |   ^~~
a.cc:12:10: error: lvalue required as unary '&' operand
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |          ^~~
a.cc:12:17: error: lvalue required as unary '&' operand
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |                 ^~~
a.cc:12:24: error: lvalue required as unary '&' operand
   12 | &#160; &#160; &#160; &#160; if(!cin)
      |                        ^~~
a.cc:13:3: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |   ^~~
a.cc:13:10: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |          ^~~
a.cc:13:17: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                 ^~~
a.cc:13:24: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                        ^~~
a.cc:13:31: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                               ^~~
a.cc:13:38: error: lvalue required as unary '&' operand
   13 | &#160; &#160; &#160; &#160; &#160; &#160; break;
      |                                      ^~~
a.cc:14:3: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |   ^~~
a.cc:14:10: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |          ^~~
a.cc:14:17: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |                 ^~~
a.cc:14:24: error: lvalue required as unary '&' operand
   14 | &#160; &#160; &#160; &#160; cin >> v1 >> a >> v2;
      |                        ^~~
a.cc:15:3: error: lvalue required as unary '&' operand
   15 | &#160;
      |   ^~~
a.cc:18:25: error: lvalue required as unary '&' operand
   18 |         leng += km[k];&#160;
      |                         ^~~
a.cc:19:48: error: lvalue required as unary '&' operand
   19 |         double length = leng * v1 / (v1 +v2);&#160;
      |                                                ^~~
a.cc:20:23: error: lvalue required as unary '&' operand
   20 |         leng = 0.0; &#160;
      |                       ^~~
a.cc:22:19: error: lvalue required as unary '&' operand
   22 |         leng += &#160;km[k];
      |                   ^~~