Language: C++

&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <string>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>

#define rep(i,j) REP((i), 0, (j))
#define REP(i,j,k) for(int i=(j);(i)<(k);++i)
#define between(a,x,b) ((a)<=(x)&&(x)<=(b))
#define INF 1 << 28

using namespace std;

int n, m;
int cost[400][400];

int main(){
  scanf("%d%d", &n, &m);
  rep(i, n) rep(j, n) cost[i][j] = 0;
  int a, b, c;
  rep(i, m){
    scanf("%d%d%d", &a, &b, &c);
    cost[a][b]  = c;
  }

  rep(k, n) rep(i, n) rep(j, n)  if(cost[i][k] && cost[k][j]) // if(i != j && k != i && k != j)
    cost[i][j] = max(cost[i][j], cost[i][k] + cost[k][j]);

  /*  rep(i, n){
    rep(j, n) printf("%d ", cost[i][j]);
    puts("");
    }*/

  printf("%d\n", cost[0][n-1]);
  return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |  ^
a.cc:1:10: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |          ^
a.cc:1:18: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                  ^
a.cc:1:26: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                          ^
a.cc:1:34: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                  ^
a.cc:1:42: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                          ^
a.cc:1:50: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                                  ^
a.cc:1:57: error: stray '#' in program
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                                         ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |   ^~~~~
a.cc:1:11: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |           ^~~~~
a.cc:1:19: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                   ^~~~~
a.cc:1:27: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                           ^~~~~
a.cc:1:35: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                   ^~~~~
a.cc:1:43: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                           ^~~~~
a.cc:1:51: error: expected unqualified-id before numeric constant
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                                   ^~~~~
a.cc:1:58: error: 'include' does not name a type
    1 | &#65279;&#65279;&#65279;&#65279;&#65279;&#65279;&#65279;#include <iostream>
      |                                                          ^~~~~~~
In file included from /usr/include/c++/14/cmath:45,
                 from a.cc:5:
/usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
  164 |   __is_null_pointer(std::nullptr_t)
      |                                   ^
/usr/include/c++/14/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)'
  159 |     __is_null_pointer(_Type)
      |     ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'
  164 |   __is_null_pointer(std::nullptr_t)
      |                          ^~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906:
/usr/include/c++/14/type_traits:666:33: error: 'nullptr_t' is not a member of 'std'
  666 |     struct is_null_pointer<std::nullptr_t>
      |                                 ^~~~~~~~~
/usr/include/c++/14/type_traits:666:42: error: template argument 1 is invalid
  666 |     struct is_null_pointer<std::nullptr_t>
      |                                          ^
/usr/include/c++/14/type_traits:670:48: error: template argument 1 is invalid
  670 |     struct is_null_pointer<const std::nullptr_t>
      |                                                ^
/usr/include/c++/14/type_traits:674:51: error: template argument 1 is invalid
  674 |     struct is_null_pointer<volatile std::nullptr_t>
      |                                                   ^
/usr/include/c++/14/type_traits:678:57: error: template argument 1 is invalid
  678 |     struct is_null_pointer<const volatile std::nullptr_t>
      |                                                         ^
/usr/include/c++/14/type_traits:1429:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1429 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                     ^~~~~~
In file included from /usr/include/stdio.h:34,
                 from /usr/include/c++/14/cstdio:42,
                 from a.cc:2:
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1429:57: error: template argument 1 is invalid
 1429 |     : public integral_constant<std::size_t, alignof(_Tp)>
      |                                                         ^
/usr/include/c++/14/type_traits:1429:57: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1438:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1438 |     : public integral_constant<std::size_t, 0> { };
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1438:46: error: template argument 1 is invalid
 1438 |     : public integral_constant<std::size_t, 0> { };
      |                                              ^
/usr/include/c++/14/type_traits:1438:46: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1440:26: error: 'std::size_t' has not been declared
 1440 |   template<typename _Tp, std::size_t _Size>
      |                          ^~~
/usr/include/c++/14/type_traits:1441:21: error: '_Size' was not declared in this scope
 1441 |     struct rank<_Tp[_Size]>
      |                     ^~~~~
/usr/include/c++/14/type_traits:1441:27: error: template argument 1 is invalid
 1441 |     struct rank<_Tp[_Size]>
      |                           ^
/usr/include/c++/14/type_traits:1442:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1442 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1442:65: error: template argument 1 is invalid
 1442 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/usr/include/c++/14/type_traits:1442:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:1446:37: error: 'size_t' is not a member of 'std'; did you mean 'size_t'?
 1446 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                     ^~~~~~
/usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h:214:23: note: 'size_t' declared here
  214 | typedef __SIZE_TYPE__ size_t;
      |                       ^~~~~~
/usr/include/c++/14/type_traits:1446:65: error: template argument 1 is invalid
 1446 |     : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
      |                                                                 ^
/usr/include/c++/14/type_traits:1446:65: note: invalid template non-type parameter
/usr/include/c++/14/type_traits:2086:26: error: 'std::size_t' has not been declared
 2086 |   template<typename _Tp, std::size_t _Size>
      |                          ^~~
/usr/include/c++/14/type_traits:2087:30: error: '_Size' was not declared in this scope
 2087 |     struct remove_extent<_Tp[_Size]>
      |                              ^~~~~
/usr/include/c++/14/type_traits:2087:36: error: template argument 1 is invalid
 2087 |     struct remove_extent<_Tp[_Size]>
      |                                    ^
/usr/include/c++/14/type_traits:2099:26: error: 'std::size_t' has not been declared
 2099 |   template<typename _Tp, std::size_t _Size>
      |                          ^~~
/usr/include/c++/14/type_traits:2100:35: error: '_Size' was not declared in this scope
 2100 |     struct remove_all_extents<_Tp[_Size]>
      |                                   ^~~~~
/usr/include/c++/14/type_traits:2100:41: error: template argument 1 is invalid
 2100 |     struct remove_all_extents<_Tp[_Size]>
      |                                         ^
/usr/include/c++/14/type_traits:2171:12: error: 'std::size_t' has not been declared
 2171 |   template<std::size_t _Len>
      |            ^~~
/usr/include/c++/14/type_traits:2176:30: error: '_Len' was not declared in this scope
 2176 |         unsigned char __data[_Len];
      |                              ^~~~
/usr/include/c++/14/type_traits:2194:12: error: 'std::size_t' has not been declared
 2194 |   template<std::size_t _Len, std::size_t _Align =
      |            ^~~
/usr/include/c++/14/type_traits:2194:30: error: 'std::size_t' has not been declared
 2194 |   template<std::size_t _Len, std::size_t _Align =
      |                              ^~~
/usr/include/c++/14/type_traits:2195:55: error: '_Len' was not declared in this scope
 2195 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |                                                       ^~~~
/usr/include/c++/14/type_traits:2195:59: error: template argument 1 is invalid
 2195 |            __alignof__(typename __aligned_storage_msa<_Len>::__type)>
      |