Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int W[100];
int sum[100];

int main() {
  int N,T;
  cint >> N;
  for(int i=0;i<N;i++){
    cin >> W[i];
  }
  
  sum[0] = W[0];
  for(int i=1;i<N;i++){
    sum[i] = sum[i-1] + W[i];
  }
  sum{N-1,i+1} - sum{0,i}, sum{N-1,i} - sum{0,i-1}
  int m = 10001;
  for(int i=0;i<N-1;i++){
    m = min(abs(sum[N-1] - sum[i],m);
  }
  cout << T;
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
   11 |   cint >> N;
      |   ^~~~
      |   uint
a.cc:20:6: error: expected ';' before '{' token
   20 |   sum{N-1,i+1} - sum{0,i}, sum{N-1,i} - sum{0,i-1}
      |      ^
      |      ;
a.cc:20:18: error: wrong type argument to unary minus
   20 |   sum{N-1,i+1} - sum{0,i}, sum{N-1,i} - sum{0,i-1}
      |                  ^~~
a.cc:20:26: error: expected primary-expression before ',' token
   20 |   sum{N-1,i+1} - sum{0,i}, sum{N-1,i} - sum{0,i-1}
      |                          ^
a.cc:20:41: error: wrong type argument to unary minus
   20 |   sum{N-1,i+1} - sum{0,i}, sum{N-1,i} - sum{0,i-1}
      |                                         ^~~
a.cc:23:16: error: no matching function for call to 'abs(int, int&)'
   23 |     m = min(abs(sum[N-1] - sum[i],m);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
/usr/include/stdlib.h:980:12: note:   candidate expects 1 argument, 2 provided
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:137:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note:   candidate expects 1 argument, 2 provided
a.cc:26:12: error: expected '}' at end of input
   26 |   return 0;
      |            ^
a.cc:9:12: note: to match this '{'
    9 | int main() {
      |            ^