Language: C++

#include <bits/stdc++.h>
using namespunoe std;
typedef long long llong;
typedef long long int lint;
typedef long double ld;
const int oo = 1e9;

int n;
const int entrada = 1e5+5;
int uno[entrada][3];
int dos[3][entrada];
int go(int a, int i)
{
	if(i==n) return 0;
	if(dos[a][i] != -1) return dos[a][i];
	int& ans = dos[a][i];
	if(a==0)
	{
		ans=max(ans, go(1, i+1)+uno[i][0]);
		ans=max(ans, go(2, i+1)+uno[i][0]);
	}
	if(a==1)
	{
		ans=max(ans, go(0, i+1)+uno[i][1]);
		ans=max(ans, go(2, i+1)+uno[i][1]);
	}
	if(a==2)
	{
		ans=max(ans, go(0, i+1)+uno[i][2]);
		ans=max(ans, go(1, i+1)+uno[i][2]);
	}
	
	return ans;
	
}
int main()
{
    cin>>n;
    for(int i=0; i<n; i++) cin>>uno[i][0]>>uno[i][1]>>uno[i][2];
    memset(dos, -1, sizeof dos);
    cout<<max(go(0,0), max(go(1,0),go(2,0)))<<"\n";
    return 0;
}
	

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespunoe'
    2 | using namespunoe std;
      |       ^~~~~~~~~~
a.cc: In function 'int go(int, int)':
a.cc:19:21: error: 'max' was not declared in this scope; did you mean 'std::max'?
   19 |                 ans=max(ans, go(1, i+1)+uno[i][0]);
      |                     ^~~
      |                     std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/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:24:21: error: 'max' was not declared in this scope; did you mean 'std::max'?
   24 |                 ans=max(ans, go(0, i+1)+uno[i][1]);
      |                     ^~~
      |                     std::max
/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:29:21: error: 'max' was not declared in this scope; did you mean 'std::max'?
   29 |                 ans=max(ans, go(0, i+1)+uno[i][2]);
      |                     ^~~
      |                     std::max
/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: In function 'int main()':
a.cc:38:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   38 |     cin>>n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:41:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   41 |     cout<<max(go(0,0), max(go(1,0),go(2,0)))<<"\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:41:24: error: 'max' was not declared in this scope; did you mean 'std::max'?
   41 |     cout<<max(go(0,0), max(go(1,0),go(2,0)))<<"\n";
      |                        ^~~
      |                        std::max
/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:41:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
   41 |     cout<<max(go(0,0), max(go(1,0),go(2,0)))<<"\n";
      |           ^~~
      |           std::max
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~