Language: C++

#include <iostream>
using namespace std;
int main() {
	int N , Bob, Alice, i;
	cin >> N;
	i = N;
	int a[N];
	for (N, N > 0, N--); {
		cin >> a[N];
	}
	sort(a.begin(), a.end());
	reverse(a.begin(), a.end());
	
	for (N=0,N<i,N+=2); {
		Alice+=a[N]
	}
	for (N = 1, N < i, N += 2); {
		Bob+=a[N]
	}
	cout << Alice - Bob << endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before ')' token
    8 |         for (N, N > 0, N--); {
      |                           ^
      |                           ;
a.cc:8:30: error: expected primary-expression before '{' token
    8 |         for (N, N > 0, N--); {
      |                              ^
a.cc:8:29: error: expected ';' before '{' token
    8 |         for (N, N > 0, N--); {
      |                             ^~
      |                             ;
a.cc:8:30: error: expected primary-expression before '{' token
    8 |         for (N, N > 0, N--); {
      |                              ^
a.cc:8:29: error: expected ')' before '{' token
    8 |         for (N, N > 0, N--); {
      |             ~               ^~
      |                             )
a.cc:11:16: error: request for member 'begin' in 'a', which is of non-class type 'int [N]'
   11 |         sort(a.begin(), a.end());
      |                ^~~~~
a.cc:11:27: error: request for member 'end' in 'a', which is of non-class type 'int [N]'
   11 |         sort(a.begin(), a.end());
      |                           ^~~
a.cc:11:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |         sort(a.begin(), a.end());
      |         ^~~~
      |         short
a.cc:12:19: error: request for member 'begin' in 'a', which is of non-class type 'int [N]'
   12 |         reverse(a.begin(), a.end());
      |                   ^~~~~
a.cc:12:30: error: request for member 'end' in 'a', which is of non-class type 'int [N]'
   12 |         reverse(a.begin(), a.end());
      |                              ^~~
a.cc:12:9: error: 'reverse' was not declared in this scope
   12 |         reverse(a.begin(), a.end());
      |         ^~~~~~~
a.cc:14:26: error: expected ';' before ')' token
   14 |         for (N=0,N<i,N+=2); {
      |                          ^
      |                          ;
a.cc:14:29: error: expected primary-expression before '{' token
   14 |         for (N=0,N<i,N+=2); {
      |                             ^
a.cc:14:28: error: expected ';' before '{' token
   14 |         for (N=0,N<i,N+=2); {
      |                            ^~
      |                            ;
a.cc:14:29: error: expected primary-expression before '{' token
   14 |         for (N=0,N<i,N+=2); {
      |                             ^
a.cc:14:28: error: expected ')' before '{' token
   14 |         for (N=0,N<i,N+=2); {
      |             ~              ^~
      |                            )
a.cc:15:28: error: expected ';' before '}' token
   15 |                 Alice+=a[N]
      |                            ^
      |                            ;
   16 |         }
      |         ~                   
a.cc:17:34: error: expected ';' before ')' token
   17 |         for (N = 1, N < i, N += 2); {
      |                                  ^
      |                                  ;
a.cc:17:37: error: expected primary-expression before '{' token
   17 |         for (N = 1, N < i, N += 2); {
      |                                     ^
a.cc:17:36: error: expected ';' before '{' token
   17 |         for (N = 1, N < i, N += 2); {
      |                                    ^~
      |                                    ;
a.cc:17:37: error: expected primary-expression before '{' token
   17 |         for (N = 1, N < i, N += 2); {
      |                                     ^
a.cc:17:36: error: expected ')' before '{' token
   17 |         for (N = 1, N < i, N += 2); {
      |             ~                      ^~
      |                                    )
a.cc:18:26: error: expected ';' before '}' token
   18 |                 Bob+=a[N]
      |                          ^
      |                          ;
   19 |         }
      |         ~