Language: C++

#include <iostream>
using namespace std;
&#160;
char judge(int pm, int pe, int pj)
{
&#160; &#160; if(pm == 100 || pe == 100 || pj == 100 || pm + pe >= 180 || pm + pe + pj >= 240) return 'A';
&#160; &#160; else if(pm + pe + pj >= 210 || pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) return 'B';
&#160; &#160; return 'C';
}
&#160;
int main()
{
&#160; &#160; int n, pm, pe, pj;
&#160; &#160; while(cin >> n, n){
&#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
&#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
&#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
&#160; &#160; &#160; &#160; }
&#160; &#160; }
}
&#160;

Compiler output:
a.cc:3:2: error: stray '#' in program
    3 | &#160;
      |  ^
a.cc:6:2: error: stray '#' in program
    6 | &#160; &#160; if(pm == 100 || pe == 100 || pj == 100 || pm + pe >= 180 || pm + pe + pj >= 240) return 'A';
      |  ^
a.cc:6:9: error: stray '#' in program
    6 | &#160; &#160; if(pm == 100 || pe == 100 || pj == 100 || pm + pe >= 180 || pm + pe + pj >= 240) return 'A';
      |         ^
a.cc:7:2: error: stray '#' in program
    7 | &#160; &#160; else if(pm + pe + pj >= 210 || pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) return 'B';
      |  ^
a.cc:7:9: error: stray '#' in program
    7 | &#160; &#160; else if(pm + pe + pj >= 210 || pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) return 'B';
      |         ^
a.cc:8:2: error: stray '#' in program
    8 | &#160; &#160; return 'C';
      |  ^
a.cc:8:9: error: stray '#' in program
    8 | &#160; &#160; return 'C';
      |         ^
a.cc:10:2: error: stray '#' in program
   10 | &#160;
      |  ^
a.cc:13:2: error: stray '#' in program
   13 | &#160; &#160; int n, pm, pe, pj;
      |  ^
a.cc:13:9: error: stray '#' in program
   13 | &#160; &#160; int n, pm, pe, pj;
      |         ^
a.cc:14:2: error: stray '#' in program
   14 | &#160; &#160; while(cin >> n, n){
      |  ^
a.cc:14:9: error: stray '#' in program
   14 | &#160; &#160; while(cin >> n, n){
      |         ^
a.cc:15:2: error: stray '#' in program
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |  ^
a.cc:15:9: error: stray '#' in program
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |         ^
a.cc:15:16: error: stray '#' in program
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |                ^
a.cc:15:23: error: stray '#' in program
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |                       ^
a.cc:16:2: error: stray '#' in program
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |  ^
a.cc:16:9: error: stray '#' in program
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |         ^
a.cc:16:16: error: stray '#' in program
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                ^
a.cc:16:23: error: stray '#' in program
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                       ^
a.cc:16:30: error: stray '#' in program
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                              ^
a.cc:16:37: error: stray '#' in program
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                                     ^
a.cc:17:2: error: stray '#' in program
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |  ^
a.cc:17:9: error: stray '#' in program
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |         ^
a.cc:17:16: error: stray '#' in program
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                ^
a.cc:17:23: error: stray '#' in program
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                       ^
a.cc:17:30: error: stray '#' in program
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                              ^
a.cc:17:37: error: stray '#' in program
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                                     ^
a.cc:18:2: error: stray '#' in program
   18 | &#160; &#160; &#160; &#160; }
      |  ^
a.cc:18:9: error: stray '#' in program
   18 | &#160; &#160; &#160; &#160; }
      |         ^
a.cc:18:16: error: stray '#' in program
   18 | &#160; &#160; &#160; &#160; }
      |                ^
a.cc:18:23: error: stray '#' in program
   18 | &#160; &#160; &#160; &#160; }
      |                       ^
a.cc:19:2: error: stray '#' in program
   19 | &#160; &#160; }
      |  ^
a.cc:19:9: error: stray '#' in program
   19 | &#160; &#160; }
      |         ^
a.cc:21:2: error: stray '#' in program
   21 | &#160;
      |  ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 | &#160;
      |   ^~~
a.cc: In function 'char judge(int, int, int)':
a.cc:6:3: error: lvalue required as unary '&' operand
    6 | &#160; &#160; if(pm == 100 || pe == 100 || pj == 100 || pm + pe >= 180 || pm + pe + pj >= 240) return 'A';
      |   ^~~
a.cc:6:10: error: lvalue required as unary '&' operand
    6 | &#160; &#160; if(pm == 100 || pe == 100 || pj == 100 || pm + pe >= 180 || pm + pe + pj >= 240) return 'A';
      |          ^~~
a.cc:7:3: error: lvalue required as unary '&' operand
    7 | &#160; &#160; else if(pm + pe + pj >= 210 || pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) return 'B';
      |   ^~~
a.cc:7:10: error: lvalue required as unary '&' operand
    7 | &#160; &#160; else if(pm + pe + pj >= 210 || pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) return 'B';
      |          ^~~
a.cc:7:15: error: 'else' without a previous 'if'
    7 | &#160; &#160; else if(pm + pe + pj >= 210 || pm + pe + pj >= 150 && (pm >= 80 || pe >= 80)) return 'B';
      |               ^~~~
a.cc:8:3: error: lvalue required as unary '&' operand
    8 | &#160; &#160; return 'C';
      |   ^~~
a.cc:8:10: error: lvalue required as unary '&' operand
    8 | &#160; &#160; return 'C';
      |          ^~~
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before numeric constant
   10 | &#160;
      |   ^~~
a.cc: In function 'int main()':
a.cc:13:3: error: lvalue required as unary '&' operand
   13 | &#160; &#160; int n, pm, pe, pj;
      |   ^~~
a.cc:13:10: error: lvalue required as unary '&' operand
   13 | &#160; &#160; int n, pm, pe, pj;
      |          ^~~
a.cc:14:3: error: lvalue required as unary '&' operand
   14 | &#160; &#160; while(cin >> n, n){
      |   ^~~
a.cc:14:10: error: lvalue required as unary '&' operand
   14 | &#160; &#160; while(cin >> n, n){
      |          ^~~
a.cc:15:3: error: lvalue required as unary '&' operand
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |   ^~~
a.cc:15:10: error: lvalue required as unary '&' operand
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |          ^~~
a.cc:15:17: error: lvalue required as unary '&' operand
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |                 ^~~
a.cc:15:24: error: lvalue required as unary '&' operand
   15 | &#160; &#160; &#160; &#160; for(int i = 0; i < n; ++i){
      |                        ^~~
a.cc:16:3: error: lvalue required as unary '&' operand
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |   ^~~
a.cc:16:10: error: lvalue required as unary '&' operand
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |          ^~~
a.cc:16:17: error: lvalue required as unary '&' operand
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                 ^~~
a.cc:16:24: error: lvalue required as unary '&' operand
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                        ^~~
a.cc:16:31: error: lvalue required as unary '&' operand
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                               ^~~
a.cc:16:38: error: lvalue required as unary '&' operand
   16 | &#160; &#160; &#160; &#160; &#160; &#160; cin >> pm >> pe >> pj;
      |                                      ^~~
a.cc:17:3: error: lvalue required as unary '&' operand
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |   ^~~
a.cc:17:10: error: lvalue required as unary '&' operand
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |          ^~~
a.cc:17:17: error: lvalue required as unary '&' operand
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                 ^~~
a.cc:17:24: error: lvalue required as unary '&' operand
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                        ^~~
a.cc:17:31: error: lvalue required as unary '&' operand
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                               ^~~
a.cc:17:38: error: lvalue required as unary '&' operand
   17 | &#160; &#160; &#160; &#160; &#160; &#160; cout << judge(pm,pe,pj) << endl;
      |                                      ^~~
a.cc:18:3: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; &#160; }
      |   ^~~
a.cc:18:10: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; &#160; }
      |          ^~~
a.cc:18:17: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; &#160; }
      |                 ^~~
a.cc:18:24: error: lvalue required as unary '&' operand
   18 | &#160; &#160; &#160; &#160; }
      |                        ^~~
a.cc:19:3: error: lvalue required as unary '&' operand
   19 | &#160; &#160; }
      |   ^~~
a.cc:19:10: error: lvalue required as unary '&' operand
   19 | &#160; &#160; }
      |          ^~~
a.cc: At global scope:
a.cc:21:3: error: expected unqualified-id before numeric constant
   21 | &#160;
      |   ^~~