记录详情

Compile Error

/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]);
                   ^~~~

信息

递交者
类型
递交
题目
P1009 怪盗基德的滑翔翼
语言
C++
递交时间
2024-03-25 17:30:05
评测时间
2024-03-25 17:30:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes