Main.cc:1:1: error: ‘package’ does not name a type
1 | package work.test;
| ^~~~~~~
Main.cc:2:1: error: ‘import’ does not name a type
2 | import java.util.*;
| ^~~~~~
Main.cc:40:12: error: expected unqualified-id before ‘[’ token
40 | double[] test01(double[][] d){
| ^
Main.cc:68:11: error: expected ‘:’ before ‘static’
68 | public static void main(String[] args) {
| ^~~~~~~
| :
Main.cc:68:29: error: ‘String’ has not been declared
68 | public static void main(String[] args) {
| ^~~~~~
Main.cc:68:38: error: expected ‘,’ or ‘...’ before ‘args’
68 | public static void main(String[] args) {
| ^~~~
Main.cc:86:2: error: expected ‘;’ after class definition
86 | }
| ^
| ;
Main.cc: In static member function ‘static void Solution::main(int*)’:
Main.cc:69:9: error: ‘Scanner’ was not declared in this scope
69 | Scanner in = new Scanner(System.in);
| ^~~~~~~
Main.cc:71:15: error: structured binding declaration cannot have type ‘double’
71 | double[][] nums=new double[4][3];
| ^~
Main.cc:71:15: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
Main.cc:71:15: error: empty structured binding declaration
Main.cc:71:17: error: expected initializer before ‘[’ token
71 | double[][] nums=new double[4][3];
| ^
Main.cc:76:17: error: ‘nums’ was not declared in this scope
76 | nums[i][j]=in.nextDouble();
| ^~~~
Main.cc:76:28: error: ‘in’ was not declared in this scope; did you mean ‘i’?
76 | nums[i][j]=in.nextDouble();
| ^~
| i
Main.cc:80:14: error: structured binding declaration cannot have type ‘double’
80 | double[] answer= new Solution().test01(nums);
| ^~
Main.cc:80:14: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
Main.cc:80:14: error: empty structured binding declaration
Main.cc:80:17: error: expected initializer before ‘answer’
80 | double[] answer= new Solution().test01(nums);
| ^~~~~~
Main.cc:81:9: error: ‘System’ was not declared in this scope
81 | System.out.println((int)(answer[0])+" "+(int)answer[1]);
| ^~~~~~
Main.cc:81:34: error: ‘answer’ was not declared in this scope
81 | System.out.println((int)(answer[0])+" "+(int)answer[1]);
| ^~~~~~
Main.cc:71:15: warning: unused structured binding declaration [-Wunused-variable]
71 | double[][] nums=new double[4][3];
| ^~
Main.cc:80:14: warning: unused structured binding declaration [-Wunused-variable]
80 | double[] answer= new Solution().test01(nums);
| ^~