jobs.cpp:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
jobs.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'
jobs.cpp:2:1: error: 'import' does not name a type
2 | import java.io.*;
| ^~~~~~
jobs.cpp:2:1: note: C++20 'import' only available with '-fmodules-ts', which is not yet enabled with '-std=c++20'
jobs.cpp:4:1: error: expected unqualified-id before 'public'
4 | public class Submit {
| ^~~~~~
jobs.cpp:59:71: error: expected ';' after class definition
59 | class job {int i; int t; job (int i, int t) {this.i = i; this.t = t;}}
| ^
| ;
jobs.cpp: In constructor 'job::job(int, int)':
jobs.cpp:59:51: error: request for member 'i' in '(job*)this', which is of pointer type 'job*' (maybe you meant to use '->' ?)
59 | class job {int i; int t; job (int i, int t) {this.i = i; this.t = t;}}
| ^
jobs.cpp:59:63: error: request for member 't' in '(job*)this', which is of pointer type 'job*' (maybe you meant to use '->' ?)
59 | class job {int i; int t; job (int i, int t) {this.i = i; this.t = t;}}
| ^