Language: C++

include <iostream>
#include <stdio.h>
#include <complex>
#include <cmath>
using namespace std;
typedef complex<double> xy_t;


double dot_product(xy_t a, xy_t b){
        return (conj(a)*b).real();
}

double cross_product(xy_t a, xy_t b){
        return (conj(a)*b).imag();
}
int main(){
        xy_t o,a,b;
        double sum = 0,x,y;
        scanf("%lf,%lf", &x, &y);
        o = xy_t (x, y);
        scanf("%lf,%lf", &x, &y);
        a = xy_t (x, y) - o;
        b = a;
        while(~scanf("%lf,%lf", &x, &y)){
                a = xy_t (x, y) - o;
                sum += cross_product(a,b) / 2.0;
                b = a;
        }
        printf("%.6f\n", abs(sum));
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
In file included from /usr/include/math.h:275,
                 from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/complex:44,
                 from a.cc:3:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you