Language: C++

#include <bits/stat.h>

using namespace std;

int main()
{
    int a,b;
    char c;
    cin >> a >> c >> b;
    if(c == '+')
        cout << a + b << endl;
    else
        cout << a - b << endl;
    return 0;
}


Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stat.h:19:3: error: #error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
   19 | # error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
      |   ^~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/stat.h:25:
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:20:3: error: #error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
   20 | # error "Never include <bits/struct_stat.h> directly; use <sys/stat.h> instead."
      |   ^~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:31:5: error: '__dev_t' does not name a type
   31 |     __dev_t st_dev;             /* Device.  */
      |     ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:36:5: error: '__ino_t' does not name a type
   36 |     __ino_t st_ino;             /* File serial number.  */
      |     ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:44:5: error: '__nlink_t' does not name a type
   44 |     __nlink_t st_nlink;         /* Link count.  */
      |     ^~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:45:5: error: '__mode_t' does not name a type
   45 |     __mode_t st_mode;           /* File mode.  */
      |     ^~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:47:5: error: '__uid_t' does not name a type
   47 |     __uid_t st_uid;             /* User ID of the file's owner. */
      |     ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:48:5: error: '__gid_t' does not name a type
   48 |     __gid_t st_gid;             /* Group ID of the file's group.*/
      |     ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:52:5: error: '__dev_t' does not name a type
   52 |     __dev_t st_rdev;            /* Device number, if device.  */
      |     ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:57:5: error: '__off_t' does not name a type
   57 |     __off_t st_size;                    /* Size of file, in bytes.  */
      |     ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:61:5: error: '__blksize_t' does not name a type
   61 |     __blksize_t st_blksize;     /* Optimal block size for I/O.  */
      |     ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:63:5: error: '__blkcnt_t' does not name a type
   63 |     __blkcnt_t st_blocks;               /* Number 512-byte blocks allocated. */
      |     ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:81:5: error: '__time_t' does not name a type
   81 |     __time_t st_atime;                  /* Time of last access.  */
      |     ^~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:82:5: error: '__syscall_ulong_t' does not name a type
   82 |     __syscall_ulong_t st_atimensec;     /* Nscecs of last access.  */
      |     ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:83:5: error: '__time_t' does not name a type
   83 |     __time_t st_mtime;                  /* Time of last modification.  */
      |     ^~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:84:5: error: '__syscall_ulong_t' does not name a type
   84 |     __syscall_ulong_t st_mtimensec;     /* Nsecs of last modification.  */
      |     ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:85:5: error: '__time_t' does not name a type
   85 |     __time_t st_ctime;                  /* Time of last status change.  */
      |     ^~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:86:5: error: '__syscall_ulong_t' does not name a type
   86 |     __syscall_ulong_t st_ctimensec;     /* Nsecs of last status change.  */
      |     ^~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/struct_stat.h:89:5: error: '__syscall_slong_t' does not name a type
   89 |     __syscall_slong_t __glibc_reserved[3];
      |     ^~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> a >> c >> b;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <bits/stat.h>
  +++ |+#include <iostream>
    2 | 
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << a + b << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:26: error: 'endl' was not declared in this scope
   11 |         cout << a + b << endl;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <bits/stat.h>
  +++ |+#include <ostream>
    2 | 
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << a - b << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:26: error: 'endl' was not declared in this scope
   13 |         cout << a - b << endl;
      |                          ^~~~
a.cc:13:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'