/in/foo.cc:1:1: error: 'import' does not name a type
import java.io.*;
^~~~~~
/in/foo.cc:5:12: error: expected ':' before 'static'
public static void main(String[] args) throws IOException{
^~~~~~
/in/foo.cc:5:29: error: 'String' has not been declared
public static void main(String[] args) throws IOException{
^~~~~~
/in/foo.cc:5:38: error: expected ',' or '...' before 'args'
public static void main(String[] args) throws IOException{
^~~~
/in/foo.cc:5:42: error: expected ';' at end of member declaration
public static void main(String[] args) throws IOException{
^
/in/foo.cc:5:44: error: 'throws' does not name a type
public static void main(String[] args) throws IOException{
^~~~~~
/in/foo.cc:19:12: error: expected ':' before 'static'
public static int left(){
^~~~~~
/in/foo.cc:32:12: error: expected ':' before 'static'
public static int right(){
^~~~~~
/in/foo.cc:44:1: error: expected ';' after class definition
}
^
/in/foo.cc: In static member function 'static int Main::left()':
/in/foo.cc:4:24: error: 'Main::dp' has incomplete type
static int n, g[], dp[];
^~
/in/foo.cc:20:23: error: invalid use of array with unspecified bounds
dp = new int[n];
^
/in/foo.cc:24:41: error: 'Math' was not declared in this scope
if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
^~~~
/in/foo.cc:27:19: error: 'Math' was not declared in this scope
res = Math.max(res, dp[i]);
^~~~
/in/foo.cc: In static member function 'static int Main::right()':
/in/foo.cc:4:24: error: 'Main::dp' has incomplete type
static int n, g[], dp[];
^~
/in/foo.cc:33:23: error: invalid use of array with unspecified bounds
dp = new int[n];
^
/in/foo.cc:37:41: error: 'Math' was not declared in this scope
if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
^~~~
/in/foo.cc:40:19: error: 'Math' was not declared in this scope
res = Math.max(res, dp[i]);
^~~~