CSES - Datatähti 2025 alku - Results
Submission details
Task:Niitty
Sender:maweiyin24562
Submission time:2024-11-02 12:21:44 +0200
Language:Assembly
Status:COMPILE ERROR

Compiler report

input/code.asm:1: error: parser: instruction expected
input/code.asm:2: error: parser: instruction expected
input/code.asm:3: error: parser: instruction expected
input/code.asm:4: error: parser: instruction expected
input/code.asm:5: error: parser: instruction expected
input/code.asm:8: error: parser: instruction expected
input/code.asm:9: error: parser: instruction expected
input/code.asm:10: error: parser: instruction expected
input/code.asm:11: error: parser: instruction expected
input/code.asm:12: error: parser: instruction expected
input/code.asm:13: error: parser: instruction expected
input/code.asm:14: error: parser: instruction expected
input/code.asm:15: error: parser: instruction expected
input/code.asm:16: warning: label alone on a line without a colon might be in error [-w+label-orphan]
input/code.asm:17: error: expression syntax error
input/code.asm:18: error: expression syntax error
input/code.asm:19: error: expression syntax error
input/code.asm:20: error: expression syn...

Code

	.section	.text$_Z5scanfPKcz,"x"
	.linkonce discard
	.globl	_Z5scanfPKcz
	.def	_Z5scanfPKcz;	.scl	2;	.type	32;	.endef
	.seh_proc	_Z5scanfPKcz
_Z5scanfPKcz:
.LFB5:
	pushq	%rbp
	.seh_pushreg	%rbp
	pushq	%rbx
	.seh_pushreg	%rbx
	subq	$56, %rsp
	.seh_stackalloc	56
	leaq	128(%rsp), %rbp
	.seh_setframe	%rbp, 128
	.seh_endprologue
	movq	%rdx, -40(%rbp)
	movq	%r8, -32(%rbp)
	movq	%r9, -24(%rbp)
	movq	%rcx, -48(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx
	call	__mingw_vscanf
	movl	%eax, %ebx
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	ret
	.seh_endproc
	.section	.text$_Z6printfPKcz,"x"
	.linkonce discard
	.globl	_Z6printfPKcz
	.def	_Z6printfPKcz;	.scl	2;	.type	32;	.endef
	.seh_proc	_Z6printfPKcz
_Z6printfPKcz:
.LFB11:
	pushq	%rbp
	.seh_pushreg	%rbp
	pushq	%rbx
	.seh_pushreg	%rbx
	subq	$56, %rsp
	.seh_stackalloc	56
	leaq	128(%rsp), %rbp
	.seh_setframe	%rbp, 128
	.seh_endprologue
	movq	%rdx, -40(%rbp)
	movq	%r8, -32(%rbp)
	movq	%r9, -24(%rbp)
	movq	%rcx, -48(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx
	call	__mingw_vprintf
	movl	%eax, %ebx
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	ret
	.seh_endproc
.lcomm _ZStL8__ioinit,1,1
	.globl	n
	.bss
	.align 4
n:
	.space 4
	.globl	C
	.align 4
C:
	.space 4
	.globl	pre
	.align 64
pre:
	.space 27980748
	.globl	idx
	.align 64
idx:
	.space 108
	.text
	.globl	_Z5checkiiii
	.def	_Z5checkiiii;	.scl	2;	.type	32;	.endef
	.seh_proc	_Z5checkiiii
_Z5checkiiii:
.LFB3628:
	pushq	%rbp
	.seh_pushreg	%rbp
	movq	%rsp, %rbp
	.seh_setframe	%rbp, 0
	subq	$16, %rsp
	.seh_stackalloc	16
	.seh_endprologue
	movl	%ecx, 16(%rbp)
	movl	%edx, 24(%rbp)
	movl	%r8d, 32(%rbp)
	movl	%r9d, 40(%rbp)
	movb	$1, -1(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L6
.L9:
	cmpb	$0, -1(%rbp)
	je	.L7
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	32(%rbp), %eax
	cltq
	movl	40(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %r8
	movslq	%edx, %rax
	movl	40(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r9
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r9, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	%ecx, %r9d
	movl	24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	32(%rbp), %eax
	cltq
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %r9d
	movl	16(%rbp), %eax
	leal	-1(%rax), %r8d
	movl	24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%r8d, %rax
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%r9d, %eax
	testl	%eax, %eax
	je	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	movl	$0, %eax
.L8:
	movb	%al, -1(%rbp)
	addl	$1, -8(%rbp)
.L6:
	movl	C(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L9
	movzbl	-1(%rbp), %eax
	addq	$16, %rsp
	popq	%rbp
	ret
	.seh_endproc
	.globl	ans
	.bss
	.align 4
ans:
	.space 4
	.def	__main;	.scl	2;	.type	32;	.endef
	.section .rdata,"dr"
.LC0:
	.ascii "%d\0"
.LC1:
	.ascii "%d\12\0"
	.text
	.globl	main
	.def	main;	.scl	2;	.type	32;	.endef
	.seh_proc	main
main:
.LFB3629:
	pushq	%rbp
	.seh_pushreg	%rbp
	movq	%rsp, %rbp
	.seh_setframe	%rbp, 0
	subq	$80, %rsp
	.seh_stackalloc	80
	.seh_endprologue
	call	__main
	leaq	n(%rip), %rdx
	leaq	.LC0(%rip), %rcx
	call	_Z5scanfPKcz
	movl	$1, -4(%rbp)
	jmp	.L12
.L20:
	movl	$1, -8(%rbp)
	jmp	.L13
.L19:
	leaq	-33(%rbp), %rax
	movq	%rax, %rdx
	movq	.refptr._ZSt3cin(%rip), %rcx
	call	_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_
	movzbl	-33(%rbp), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	idx(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	movl	C(%rip), %eax
	addl	$1, %eax
	movl	%eax, C(%rip)
	movl	C(%rip), %edx
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	idx(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L14:
	movl	$1, -12(%rbp)
	jmp	.L15
.L18:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	idx(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	-12(%rbp), %eax
	jne	.L16
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %r8
	movl	-4(%rbp), %eax
	cltq
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r9
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r9, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %r9d
	movl	-4(%rbp), %eax
	leal	-1(%rax), %r8d
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%r8d, %rax
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %r9d
	movl	%r9d, %eax
	leal	1(%rax), %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %r8
	movl	-4(%rbp), %eax
	cltq
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r9
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r9, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L17
.L16:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %r8
	movl	-4(%rbp), %eax
	cltq
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r9
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r9, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %r9d
	movl	-4(%rbp), %eax
	leal	-1(%rax), %r8d
	movl	-8(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%r8d, %rax
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r8
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r8, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%r9d, %ecx
	subl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %r8
	movl	-4(%rbp), %eax
	cltq
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$13743, %rax, %r9
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	addq	%rdx, %rax
	addq	%r9, %rax
	addq	%r8, %rax
	leaq	0(,%rax,4), %rdx
	leaq	pre(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L17:
	addl	$1, -12(%rbp)
.L15:
	movl	C(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L18
	addl	$1, -8(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L19
	addl	$1, -4(%rbp)
.L12:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L20
	movl	$1, -16(%rbp)
	jmp	.L21
.L35:
	movl	-16(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L22
.L34:
	movl	n(%rip), %ecx
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%ecx, %r9d
	movl	%edx, %r8d
	movl	$1, %edx
	movl	%eax, %ecx
	call	_Z5checkiiii
	xorl	$1, %eax
	testb	%al, %al
	je	.L23
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L24
	movl	ans(%rip), %eax
	movl	%eax, %edx
	movq	.refptr._ZSt4cout(%rip), %rcx
	call	_ZNSolsEi
	movq	.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(%rip), %rdx
	movq	%rax, %rcx
	call	_ZNSolsEPFRSoS_E
	movl	$0, %eax
	jmp	.L25
.L24:
	jmp	.L26
.L23:
	movl	$1, -24(%rbp)
	movl	$1, -28(%rbp)
	jmp	.L27
.L33:
	jmp	.L28
.L31:
	addl	$1, -24(%rbp)
.L28:
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	-28(%rbp), %r8d
	movl	-20(%rbp), %ecx
	movl	-16(%rbp), %eax
	movl	%r8d, %r9d
	movl	%ecx, %r8d
	movl	%eax, %ecx
	call	_Z5checkiiii
	testb	%al, %al
	je	.L29
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jge	.L29
	movl	$1, %eax
	jmp	.L30
.L29:
	movl	$0, %eax
.L30:
	testb	%al, %al
	jne	.L31
	movl	-28(%rbp), %r8d
	movl	-20(%rbp), %ecx
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%r8d, %r9d
	movl	%ecx, %r8d
	movl	%eax, %ecx
	call	_Z5checkiiii
	testb	%al, %al
	je	.L32
	movl	ans(%rip), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, ans(%rip)
.L32:
	addl	$1, -28(%rbp)
.L27:
	movl	n(%rip), %eax
	cmpl	%eax, -28(%rbp)
	jle	.L33
.L26:
	addl	$1, -20(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L34
	addl	$1, -16(%rbp)
.L21:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L35
	movl	ans(%rip), %eax
	movl	%eax, %edx
	leaq	.LC1(%rip), %rcx
	call	_Z6printfPKcz
	movl	$0, %eax
.L25:
	addq	$80, %rsp
	popq	%rbp
	ret
	.seh_endproc
	.def	__tcf_0;	.scl	3;	.type	32;	.endef
	.seh_proc	__tcf_0
__tcf_0:
.LFB3653:
	pushq	%rbp
	.seh_pushreg	%rbp
	movq	%rsp, %rbp
	.seh_setframe	%rbp, 0
	subq	$32, %rsp
	.seh_stackalloc	32
	.seh_endprologue
	leaq	_ZStL8__ioinit(%rip), %rcx
	call	_ZNSt8ios_base4InitD1Ev
	nop
	addq	$32, %rsp
	popq	%rbp
	ret
	.seh_endproc
	.def	_Z41__static_initialization_and_destruction_0ii;	.scl	3;	.type	32;	.endef
	.seh_proc	_Z41__static_initialization_and_destruction_0ii
_Z41__static_initialization_and_destruction_0ii:
.LFB3652:
	pushq	%rbp
	.seh_pushreg	%rbp
	movq	%rsp, %rbp
	.seh_setframe	%rbp, 0
	subq	$32, %rsp
	.seh_stackalloc	32
	.seh_endprologue
	movl	%ecx, 16(%rbp)
	movl	%edx, 24(%rbp)
	cmpl	$1, 16(%rbp)
	jne	.L37
	cmpl	$65535, 24(%rbp)
	jne	.L37
	leaq	_ZStL8__ioinit(%rip), %rcx
	call	_ZNSt8ios_base4InitC1Ev
	leaq	__tcf_0(%rip), %rcx
	call	atexit
	nop
.L37:
	addq	$32, %rsp
	popq	%rbp
	ret
	.seh_endproc
	.section .rdata,"dr"
	.align 4
_ZL1N:
	.long	509
	.align 4
_ZL1F:
	.long	26
	.text
	.def	_GLOBAL__sub_I_n;	.scl	3;	.type	32;	.endef
	.seh_proc	_GLOBAL__sub_I_n
_GLOBAL__sub_I_n:
.LFB3654:
	pushq	%rbp
	.seh_pushreg	%rbp
	movq	%rsp, %rbp
	.seh_setframe	%rbp, 0
	subq	$32, %rsp
	.seh_stackalloc	32
	.seh_endprologue
	movl	$65535, %edx
	movl	$1, %ecx
	call	_Z41__static_initialization_and_destruction_0ii
	nop
	addq	$32, %rsp
	popq	%rbp
	ret
	.seh_endproc
	.section	.ctors,"w"
	.align 8
	.quad	_GLOBAL__sub_I_n
	.ident	"GCC: (tdm64-1) 4.9.2"
	.def	__mingw_vscanf;	.scl	2;	.type	32;	.endef
	.def	__mingw_vprintf;	.scl	2;	.type	32;	.endef
	.def	_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_;	.scl	2;	.type	32;	.endef
	.def	_ZNSolsEi;	.scl	2;	.type	32;	.endef
	.def	_ZNSolsEPFRSoS_E;	.scl	2;	.type	32;	.endef
	.def	_ZNSt8ios_base4InitD1Ev;	.scl	2;	.type	32;	.endef
	.def	_ZNSt8ios_base4InitC1Ev;	.scl	2;	.type	32;	.endef
	.def	atexit;	.scl	2;	.type	32;	.endef
	.section	.rdata$.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_, "dr"
	.globl	.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	.linkonce	discard
.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_:
	.quad	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_
	.section	.rdata$.refptr._ZSt4cout, "dr"
	.globl	.refptr._ZSt4cout
	.linkonce	discard
.refptr._ZSt4cout:
	.quad	_ZSt4cout
	.section	.rdata$.refptr._ZSt3cin, "dr"
	.globl	.refptr._ZSt3cin
	.linkonce	discard
.refptr._ZSt3cin:
	.quad	_ZSt3cin