/ Vijos /

记录详情

Compile Error

./Main.java:1: error: class, interface, enum, or record expected
Const
^
./Main.java:2: error: unclosed character literal
    SourcePath:string='vijos1730';
                      ^
./Main.java:2: error: unclosed character literal
    SourcePath:string='vijos1730';
                                ^
./Main.java:3: error: unclosed character literal
    InputFile:string='vijos1730.in';
                     ^
./Main.java:3: error: unclosed character literal
    InputFile:string='vijos1730.in';
                                  ^
./Main.java:4: error: unclosed character literal
    OutputFile:string='vijos1730.out';
                      ^
./Main.java:4: error: unclosed character literal
    OutputFile:string='vijos1730.out';
                                    ^
./Main.java:8: error: class, interface, enum, or record expected
    szExeFile:array[1..260] of char;
    ^
./Main.java:9: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:10: error: class, interface, enum, or record expected
    MODULEENTRY32=record
    ^
./Main.java:12: error: class, interface, enum, or record expected
    modBaseAddr:byte;
    ^
./Main.java:13: error: class, interface, enum, or record expected
    modBaseSize,hModule:longint;
    ^
./Main.java:14: error: class, interface, enum, or record expected
    szModule:array[1..256] of char;
    ^
./Main.java:15: error: class, interface, enum, or record expected
    szExePath:array[1..1024] of char;
    ^
./Main.java:16: error: class, interface, enum, or record expected
    end;
    ^
./Main.java:17: error: class, interface, enum, or record expected
    Tgzopen=Function(path,mode:ansistring):longint;stdcall;
    ^
./Main.java:17: error: class, interface, enum, or record expected
    Tgzopen=Function(path,mode:ansistring):longint;stdcall;
                                                   ^
./Main.java:18: error: class, interface, enum, or record expected
    Tgzgetc=Function(gz:longint):longint;stdcall;
    ^
./Main.java:18: error: class, interface, enum, or record expected
    Tgzgetc=Function(gz:longint):longint;stdcall;
                                         ^
./Main.java:19: error: class, interface, enum, or record expected
    Tgzclose=Function(gz:longint):longint;stdcall;
    ^
./Main.java:19: error: class, interface, enum, or record expected
    Tgzclose=Function(gz:longint):longint;stdcall;
                                          ^
./Main.java:20: error: class, interface, enum, or record expected
var
^
./Main.java:22: error: class, interface, enum, or record expected
    data,xml,t,datat:ansistring;
    ^
./Main.java:23: error: class, interface, enum, or record expected
    snapshot,gz,hModule,temp:longint;
    ^
./Main.java:24: error: class, interface, enum, or record expected
    mate:boolean;
    ^
./Main.java:25: error: class, interface, enum, or record expected
    process:PROCESSENTRY32;
    ^
./Main.java:26: error: class, interface, enum, or record expected
    module:MODULEENTRY32;
    ^
./Main.java:27: error: class, interface, enum, or record expected
    gzopen:Tgzopen;gzgetc:Tgzgetc;gzclose:Tgzclose;
    ^
./Main.java:27: error: class, interface, enum, or record expected
    gzopen:Tgzopen;gzgetc:Tgzgetc;gzclose:Tgzclose;
                   ^
./Main.java:27: error: class, interface, enum, or record expected
    gzopen:Tgzopen;gzgetc:Tgzgetc;gzclose:Tgzclose;
                                  ^
./Main.java:28: error: class, interface, enum, or record expected
Function GetModuleFileName(hModule:longint;lpFileName:string;nSize:longint):longint;
^
./Main.java:28: error: class, interface, enum, or record expected
Function GetModuleFileName(hModule:longint;lpFileName:string;nSize:longint):longint;
                                           ^
./Main.java:28: error: class, interface, enum, or record expected
Function GetModuleFileName(hModule:longint;lpFileName:string;nSize:longint):longint;
                                                             ^
./Main.java:29: error: class, interface, enum, or record expected
stdcall;external 'kernel.dll' name 'GetModuleFileNameA';Function FreeLibrary(hLibModule:longint):longint;
^
./Main.java:29: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetModuleFileNameA';Function FreeLibrary(hLibModule:longint):longint;
                 ^
./Main.java:29: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetModuleFileNameA';Function FreeLibrary(hLibModule:longint):longint;
                            ^
./Main.java:29: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetModuleFileNameA';Function FreeLibrary(hLibModule:longint):longint;
                                   ^
./Main.java:29: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetModuleFileNameA';Function FreeLibrary(hLibModule:longint):longint;
                                                      ^
./Main.java:30: error: class, interface, enum, or record expected
stdcall;external 'kernel.dll' name 'FreeLibrary';
^
./Main.java:30: error: unclosed character literal
stdcall;external 'kernel.dll' name 'FreeLibrary';
                 ^
./Main.java:30: error: unclosed character literal
stdcall;external 'kernel.dll' name 'FreeLibrary';
                            ^
./Main.java:30: error: unclosed character literal
stdcall;external 'kernel.dll' name 'FreeLibrary';
                                   ^
./Main.java:30: error: unclosed character literal
stdcall;external 'kernel.dll' name 'FreeLibrary';
                                               ^
./Main.java:31: error: class, interface, enum, or record expected
Function LoadLibrary(lpLibFileName:ansistring):THandle;stdcall;
                                                       ^
./Main.java:32: error: unclosed character literal
external 'kernel.dll' name 'LoadLibraryA';
         ^
./Main.java:32: error: unclosed character literal
external 'kernel.dll' name 'LoadLibraryA';
                    ^
./Main.java:32: error: unclosed character literal
external 'kernel.dll' name 'LoadLibraryA';
                           ^
./Main.java:32: error: unclosed character literal
external 'kernel.dll' name 'LoadLibraryA';
                                        ^
./Main.java:33: error: class, interface, enum, or record expected
Function GetProcAddress(hModule:longint;lpProcName:ansistring):pointer;
                                        ^
./Main.java:34: error: class, interface, enum, or record expected
stdcall;external 'kernel.dll' name 'GetProcAddress';
^
./Main.java:34: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetProcAddress';
                 ^
./Main.java:34: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetProcAddress';
                            ^
./Main.java:34: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetProcAddress';
                                   ^
./Main.java:34: error: unclosed character literal
stdcall;external 'kernel.dll' name 'GetProcAddress';
                                                  ^
./Main.java:35: error: class, interface, enum, or record expected
Function CreateToolhelp32Snapshot(dwFlags:longint;th32ProcessID:longint):longint;stdcall;
                                                  ^
./Main.java:35: error: class, interface, enum, or record expected
Function CreateToolhelp32Snapshot(dwFlags:longint;th32ProcessID:longint):longint;stdcall;
                                                                                 ^
./Main.java:36: error: unclosed character literal
external 'kernel.dll' name 'CreateToolhelp32Snapshot';
         ^
./Main.java:36: error: unclosed character literal
external 'kernel.dll' name 'CreateToolhelp32Snapshot';
                    ^
./Main.java:36: error: unclosed character literal
external 'kernel.dll' name 'CreateToolhelp32Snapshot';
                           ^
./Main.java:36: error: unclosed character literal
external 'kernel.dll' name 'CreateToolhelp32Snapshot';
                                                    ^
./Main.java:37: error: class, interface, enum, or record expected
Function Process32First(hSnapShot:longint;var uProcess:PROCESSENTRY32):longint;
                                          ^
./Main.java:38: error: class, interface, enum, or record expected
stdcall;external 'kernel.dll' name 'Process32First';
^
./Main.java:38: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Process32First';
                 ^
./Main.java:38: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Process32First';
                            ^
./Main.java:38: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Process32First';
                                   ^
./Main.java:38: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Process32First';
                                                  ^
./Main.java:39: error: class, interface, enum, or record expected
Function Process32Next(hSnapShot:longint;var uProcess:PROCESSENTRY32):longint;stdcall;
                                         ^
./Main.java:39: error: class, interface, enum, or record expected
Function Process32Next(hSnapShot:longint;var uProcess:PROCESSENTRY32):longint;stdcall;
                                                                              ^
./Main.java:40: error: unclosed character literal
external 'kernel.dll' name 'Process32Next';Function Module32First(hSnapShot:longint;var lppe:MODULEENTRY32):longint;
         ^
./Main.java:40: error: unclosed character literal
external 'kernel.dll' name 'Process32Next';Function Module32First(hSnapShot:longint;var lppe:MODULEENTRY32):longint;
                    ^
./Main.java:40: error: unclosed character literal
external 'kernel.dll' name 'Process32Next';Function Module32First(hSnapShot:longint;var lppe:MODULEENTRY32):longint;
                           ^
./Main.java:40: error: unclosed character literal
external 'kernel.dll' name 'Process32Next';Function Module32First(hSnapShot:longint;var lppe:MODULEENTRY32):longint;
                                         ^
./Main.java:40: error: class, interface, enum, or record expected
external 'kernel.dll' name 'Process32Next';Function Module32First(hSnapShot:longint;var lppe:MODULEENTRY32):longint;
                                                                                    ^
./Main.java:41: error: class, interface, enum, or record expected
stdcall;external 'kernel.dll' name 'Module32First';
^
./Main.java:41: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32First';
                 ^
./Main.java:41: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32First';
                            ^
./Main.java:41: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32First';
                                   ^
./Main.java:41: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32First';
                                                 ^
./Main.java:42: error: class, interface, enum, or record expected
Function Module32Next(hSnapShot:longint;var lppe:MODULEENTRY32):longint;
                                        ^
./Main.java:43: error: class, interface, enum, or record expected
stdcall;external 'kernel.dll' name 'Module32Next';
^
./Main.java:43: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32Next';
                 ^
./Main.java:43: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32Next';
                            ^
./Main.java:43: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32Next';
                                   ^
./Main.java:43: error: unclosed character literal
stdcall;external 'kernel.dll' name 'Module32Next';
                                                ^
./Main.java:48: error: class, interface, enum, or record expected
path:=path[0]+Copy(path,1,pos('\tmp\',path));
^
./Main.java:48: error: unclosed character literal
path:=path[0]+Copy(path,1,pos('\tmp\',path));
                              ^
./Main.java:48: error: illegal character: '\'
path:=path[0]+Copy(path,1,pos('\tmp\',path));
                                   ^
./Main.java:48: error: unclosed character literal
path:=path[0]+Copy(path,1,pos('\tmp\',path));
                                    ^
./Main.java:49: error: class, interface, enum, or record expected
snapshot:=CreateToolhelp32Snapshot(2,0);
^
./Main.java:50: error: class, interface, enum, or record expected
process.dwsize:=sizeof(PROCESSENTRY32);
^
./Main.java:51: error: class, interface, enum, or record expected
Process32First(snapshot,process);
^
./Main.java:52: error: class, interface, enum, or record expected
while not (Copy(process.szExeFile,1,8)='cena.exe') do  Process32Next(snapshot,Process);
^
./Main.java:52: error: unclosed character literal
while not (Copy(process.szExeFile,1,8)='cena.exe') do  Process32Next(snapshot,Process);
                                       ^
./Main.java:52: error: unclosed character literal
while not (Copy(process.szExeFile,1,8)='cena.exe') do  Process32Next(snapshot,Process);
                                                ^
./Main.java:53: error: class, interface, enum, or record expected
snapshot:=CreateToolhelp32Snapshot(8,process.th32ProcessID);
^
./Main.java:54: error: class, interface, enum, or record expected
module.dwSize:=sizeof(MODULEENTRY32);
^
./Main.java:55: error: class, interface, enum, or record expected
Module32First(snapshot,module);
^
./Main.java:56: error: class, interface, enum, or record expected
while not (Copy(module.szmodule,1,9)='zlib1.dll') do Module32Next(snapshot,module);
^
./Main.java:56: error: unclosed character literal
while not (Copy(module.szmodule,1,9)='zlib1.dll') do Module32Next(snapshot,module);
                                     ^
./Main.java:56: error: unclosed character literal
while not (Copy(module.szmodule,1,9)='zlib1.dll') do Module32Next(snapshot,module);
                                               ^
100 errors
only showing the first 100 errors, of 177 total; use -Xmaxerrs if you would like to see more
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1730 InterleavePal
语言
Java
递交时间
2024-01-01 18:46:28
评测时间
2024-01-01 18:46:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes