Language: C++

#include<iostream>
#include<algorithm>
using namespace name std;
static const int MAX = 20000;

int main(int argc, char const *argv[]) {
  /* code */
  int R[MAX], n;

  cin >> n;
  for (int i = 0; i < count; i++) {
    /* code */
    cin >> R[i];
  }
  int maxv = -200000000000;
  int minv = R[0];

  for (int i = 0; i < count; i++) {
    /* code */
    maxv = max(maxv, R[i] - minv);
    minv = min(minv, R[i])
  }

  count << maxv << endl;

  return 0;
}

Compiler output:
a.cc:3:17: error: 'name' is not a namespace-name
    3 | using namespace name std;
      |                 ^~~~
a.cc:3:21: error: expected ';' before 'std'
    3 | using namespace name std;
      |                     ^~~~
      |                     ;
a.cc:3:22: error: 'std' does not name a type
    3 | using namespace name std;
      |                      ^~~
a.cc: In function 'int main(int, const char**)':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:23: error: 'count' was not declared in this scope; did you mean 'std::count'?
   11 |   for (int i = 0; i < count; i++) {
      |                       ^~~~~
      |                       std::count
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: 'std::count' declared here
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
a.cc:15:14: warning: overflow in conversion from 'long int' to 'int' changes value from '-200000000000' to '1863462912' [-Woverflow]
   15 |   int maxv = -200000000000;
      |              ^~~~~~~~~~~~~
a.cc:18:23: error: 'count' was not declared in this scope; did you mean 'std::count'?
   18 |   for (int i = 0; i < count; i++) {
      |                       ^~~~~
      |                       std::count
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: 'std::count' declared here
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
a.cc:20:12: error: 'max' was not declared in this scope; did you mean 'std::max'?
   20 |     maxv = max(maxv, R[i] - minv);
      |            ^~~
      |            std::max
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:21:12: error: 'min' was not declared in this scope; did you mean 'std::min'?
   21 |     minv = min(minv, R[i])
      |            ^~~
      |            std::min
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:24:3: error: 'count' was not declared in this scope; did you mean 'std::count'?
   24 |   count << maxv << endl;
      |   ^~~~~
      |   std::count
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: 'std::count' declared here
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
a.cc:24:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   24 |   count << maxv << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~