fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. #include <assert.h>
  5. using namespace std;
  6. int main(){
  7.  
  8. int n; cin>>n;
  9. //assert(n==0);// n = 0
  10. long long int l = 18014415152484098 + n;
  11.  
  12. long long int calc = sqrt(l);
  13. cout<< l << endl;
  14. cout<< calc <<endl;
  15.  
  16. long long int calc2 = sqrt(18014415152484098);
  17. cout << calc2 <<endl;
  18.  
  19. system("objdump -Sdr prog | c++filt");
  20.  
  21. assert(calc == calc2);
  22.  
  23. return 0;
  24. }
Runtime error #stdin #stdout #stderr 0s 4648KB
stdin
Standard input is empty
stdout
18014415152484098
134217789
134217790

prog:     file format elf32-i386


Disassembly of section .init:

080485c8 <.init>:
 80485c8:	53                   	push   %ebx
 80485c9:	83 ec 08             	sub    $0x8,%esp
 80485cc:	e8 4f 02 00 00       	call   8048820 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x180>
 80485d1:	81 c3 3f 16 00 00    	add    $0x163f,%ebx
 80485d7:	8b 83 fc ff ff ff    	mov    -0x4(%ebx),%eax
 80485dd:	85 c0                	test   %eax,%eax
 80485df:	74 05                	je     80485e6 <__cxa_atexit@plt-0x1a>
 80485e1:	e8 2a 00 00 00       	call   8048610 <__gmon_start__@plt>
 80485e6:	83 c4 08             	add    $0x8,%esp
 80485e9:	5b                   	pop    %ebx
 80485ea:	c3                   	ret    

Disassembly of section .plt:

080485f0 <__cxa_atexit@plt-0x10>:
 80485f0:	ff 35 14 9c 04 08    	pushl  0x8049c14
 80485f6:	ff 25 18 9c 04 08    	jmp    *0x8049c18
 80485fc:	00 00                	add    %al,(%eax)
	...

08048600 <__cxa_atexit@plt>:
 8048600:	ff 25 1c 9c 04 08    	jmp    *0x8049c1c
 8048606:	68 00 00 00 00       	push   $0x0
 804860b:	e9 e0 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048610 <__gmon_start__@plt>:
 8048610:	ff 25 20 9c 04 08    	jmp    *0x8049c20
 8048616:	68 08 00 00 00       	push   $0x8
 804861b:	e9 d0 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048620 <system@plt>:
 8048620:	ff 25 24 9c 04 08    	jmp    *0x8049c24
 8048626:	68 10 00 00 00       	push   $0x10
 804862b:	e9 c0 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048630 <std::ios_base::Init::Init()@plt>:
 8048630:	ff 25 28 9c 04 08    	jmp    *0x8049c28
 8048636:	68 18 00 00 00       	push   $0x18
 804863b:	e9 b0 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048640 <__libc_start_main@plt>:
 8048640:	ff 25 2c 9c 04 08    	jmp    *0x8049c2c
 8048646:	68 20 00 00 00       	push   $0x20
 804864b:	e9 a0 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048650 <__assert_fail@plt>:
 8048650:	ff 25 30 9c 04 08    	jmp    *0x8049c30
 8048656:	68 28 00 00 00       	push   $0x28
 804865b:	e9 90 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048660 <std::ios_base::Init::~Init()@plt>:
 8048660:	ff 25 34 9c 04 08    	jmp    *0x8049c34
 8048666:	68 30 00 00 00       	push   $0x30
 804866b:	e9 80 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048670 <sqrt@plt>:
 8048670:	ff 25 38 9c 04 08    	jmp    *0x8049c38
 8048676:	68 38 00 00 00       	push   $0x38
 804867b:	e9 70 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048680 <std::basic_istream<char, std::char_traits<char> >::operator>>(int&)@plt>:
 8048680:	ff 25 3c 9c 04 08    	jmp    *0x8049c3c
 8048686:	68 40 00 00 00       	push   $0x40
 804868b:	e9 60 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

08048690 <std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@plt>:
 8048690:	ff 25 40 9c 04 08    	jmp    *0x8049c40
 8048696:	68 48 00 00 00       	push   $0x48
 804869b:	e9 50 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

080486a0 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt>:
 80486a0:	ff 25 44 9c 04 08    	jmp    *0x8049c44
 80486a6:	68 50 00 00 00       	push   $0x50
 80486ab:	e9 40 ff ff ff       	jmp    80485f0 <__cxa_atexit@plt-0x10>

Disassembly of section .text:

080486b0 <.text>:
 80486b0:	8d 4c 24 04          	lea    0x4(%esp),%ecx
 80486b4:	83 e4 f0             	and    $0xfffffff0,%esp
 80486b7:	ff 71 fc             	pushl  -0x4(%ecx)
 80486ba:	55                   	push   %ebp
 80486bb:	89 e5                	mov    %esp,%ebp
 80486bd:	57                   	push   %edi
 80486be:	56                   	push   %esi
 80486bf:	53                   	push   %ebx
 80486c0:	51                   	push   %ecx
 80486c1:	8d 45 e4             	lea    -0x1c(%ebp),%eax
 80486c4:	83 ec 40             	sub    $0x40,%esp
 80486c7:	50                   	push   %eax
 80486c8:	68 60 9c 04 08       	push   $0x8049c60
 80486cd:	e8 ae ff ff ff       	call   8048680 <std::basic_istream<char, std::char_traits<char> >::operator>>(int&)@plt>
 80486d2:	8b 4d e4             	mov    -0x1c(%ebp),%ecx
 80486d5:	89 cb                	mov    %ecx,%ebx
 80486d7:	c1 fb 1f             	sar    $0x1f,%ebx
 80486da:	81 c1 02 0f 00 e0    	add    $0xe0000f02,%ecx
 80486e0:	81 d3 03 00 40 00    	adc    $0x400003,%ebx
 80486e6:	89 4d b8             	mov    %ecx,-0x48(%ebp)
 80486e9:	83 c4 10             	add    $0x10,%esp
 80486ec:	89 5d bc             	mov    %ebx,-0x44(%ebp)
 80486ef:	df 6d b8             	fildll -0x48(%ebp)
 80486f2:	d9 c0                	fld    %st(0)
 80486f4:	d9 fa                	fsqrt  
 80486f6:	dd e0                	fucom  %st(0)
 80486f8:	df e0                	fnstsw %ax
 80486fa:	9e                   	sahf   
 80486fb:	0f 8a 90 00 00 00    	jp     8048791 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0xf1>
 8048701:	dd d9                	fstp   %st(1)
 8048703:	d9 7d ce             	fnstcw -0x32(%ebp)
 8048706:	0f b7 45 ce          	movzwl -0x32(%ebp),%eax
 804870a:	83 ec 04             	sub    $0x4,%esp
 804870d:	53                   	push   %ebx
 804870e:	51                   	push   %ecx
 804870f:	68 00 9d 04 08       	push   $0x8049d00
 8048714:	b4 0c                	mov    $0xc,%ah
 8048716:	66 89 45 cc          	mov    %ax,-0x34(%ebp)
 804871a:	d9 6d cc             	fldcw  -0x34(%ebp)
 804871d:	df 7d c0             	fistpll -0x40(%ebp)
 8048720:	d9 6d ce             	fldcw  -0x32(%ebp)
 8048723:	8b 75 c0             	mov    -0x40(%ebp),%esi
 8048726:	8b 7d c4             	mov    -0x3c(%ebp),%edi
 8048729:	e8 72 ff ff ff       	call   80486a0 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt>
 804872e:	89 04 24             	mov    %eax,(%esp)
 8048731:	e8 5a ff ff ff       	call   8048690 <std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@plt>
 8048736:	83 c4 0c             	add    $0xc,%esp
 8048739:	57                   	push   %edi
 804873a:	56                   	push   %esi
 804873b:	68 00 9d 04 08       	push   $0x8049d00
 8048740:	e8 5b ff ff ff       	call   80486a0 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt>
 8048745:	89 04 24             	mov    %eax,(%esp)
 8048748:	e8 43 ff ff ff       	call   8048690 <std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@plt>
 804874d:	83 c4 0c             	add    $0xc,%esp
 8048750:	6a 00                	push   $0x0
 8048752:	68 3e 00 00 08       	push   $0x800003e
 8048757:	68 00 9d 04 08       	push   $0x8049d00
 804875c:	e8 3f ff ff ff       	call   80486a0 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt>
 8048761:	89 04 24             	mov    %eax,(%esp)
 8048764:	e8 27 ff ff ff       	call   8048690 <std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@plt>
 8048769:	c7 04 24 80 89 04 08 	movl   $0x8048980,(%esp)
 8048770:	e8 ab fe ff ff       	call   8048620 <system@plt>
 8048775:	89 f0                	mov    %esi,%eax
 8048777:	83 c4 10             	add    $0x10,%esp
 804877a:	35 3e 00 00 08       	xor    $0x800003e,%eax
 804877f:	09 f8                	or     %edi,%eax
 8048781:	75 29                	jne    80487ac <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x10c>
 8048783:	8d 65 f0             	lea    -0x10(%ebp),%esp
 8048786:	31 c0                	xor    %eax,%eax
 8048788:	59                   	pop    %ecx
 8048789:	5b                   	pop    %ebx
 804878a:	5e                   	pop    %esi
 804878b:	5f                   	pop    %edi
 804878c:	5d                   	pop    %ebp
 804878d:	8d 61 fc             	lea    -0x4(%ecx),%esp
 8048790:	c3                   	ret    
 8048791:	dd d8                	fstp   %st(0)
 8048793:	83 ec 10             	sub    $0x10,%esp
 8048796:	dd 1c 24             	fstpl  (%esp)
 8048799:	e8 d2 fe ff ff       	call   8048670 <sqrt@plt>
 804879e:	83 c4 10             	add    $0x10,%esp
 80487a1:	8b 4d b8             	mov    -0x48(%ebp),%ecx
 80487a4:	8b 5d bc             	mov    -0x44(%ebp),%ebx
 80487a7:	e9 57 ff ff ff       	jmp    8048703 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x63>
 80487ac:	68 b4 89 04 08       	push   $0x80489b4
 80487b1:	6a 15                	push   $0x15
 80487b3:	68 9c 89 04 08       	push   $0x804899c
 80487b8:	68 a5 89 04 08       	push   $0x80489a5
 80487bd:	e8 8e fe ff ff       	call   8048650 <__assert_fail@plt>
 80487c2:	8d b4 26 00 00 00 00 	lea    0x0(%esi,%eiz,1),%esi
 80487c9:	8d bc 27 00 00 00 00 	lea    0x0(%edi,%eiz,1),%edi
 80487d0:	83 ec 18             	sub    $0x18,%esp
 80487d3:	68 8d 9d 04 08       	push   $0x8049d8d
 80487d8:	e8 53 fe ff ff       	call   8048630 <std::ios_base::Init::Init()@plt>
 80487dd:	83 c4 0c             	add    $0xc,%esp
 80487e0:	68 4c 9c 04 08       	push   $0x8049c4c
 80487e5:	68 8d 9d 04 08       	push   $0x8049d8d
 80487ea:	68 60 86 04 08       	push   $0x8048660
 80487ef:	e8 0c fe ff ff       	call   8048600 <__cxa_atexit@plt>
 80487f4:	83 c4 1c             	add    $0x1c,%esp
 80487f7:	c3                   	ret    
 80487f8:	31 ed                	xor    %ebp,%ebp
 80487fa:	5e                   	pop    %esi
 80487fb:	89 e1                	mov    %esp,%ecx
 80487fd:	83 e4 f0             	and    $0xfffffff0,%esp
 8048800:	50                   	push   %eax
 8048801:	54                   	push   %esp
 8048802:	52                   	push   %edx
 8048803:	68 60 89 04 08       	push   $0x8048960
 8048808:	68 f0 88 04 08       	push   $0x80488f0
 804880d:	51                   	push   %ecx
 804880e:	56                   	push   %esi
 804880f:	68 b0 86 04 08       	push   $0x80486b0
 8048814:	e8 27 fe ff ff       	call   8048640 <__libc_start_main@plt>
 8048819:	f4                   	hlt    
 804881a:	66 90                	xchg   %ax,%ax
 804881c:	66 90                	xchg   %ax,%ax
 804881e:	66 90                	xchg   %ax,%ax
 8048820:	8b 1c 24             	mov    (%esp),%ebx
 8048823:	c3                   	ret    
 8048824:	66 90                	xchg   %ax,%ax
 8048826:	66 90                	xchg   %ax,%ax
 8048828:	66 90                	xchg   %ax,%ax
 804882a:	66 90                	xchg   %ax,%ax
 804882c:	66 90                	xchg   %ax,%ax
 804882e:	66 90                	xchg   %ax,%ax
 8048830:	b8 53 9c 04 08       	mov    $0x8049c53,%eax
 8048835:	2d 50 9c 04 08       	sub    $0x8049c50,%eax
 804883a:	83 f8 06             	cmp    $0x6,%eax
 804883d:	76 1a                	jbe    8048859 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x1b9>
 804883f:	b8 00 00 00 00       	mov    $0x0,%eax
 8048844:	85 c0                	test   %eax,%eax
 8048846:	74 11                	je     8048859 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x1b9>
 8048848:	55                   	push   %ebp
 8048849:	89 e5                	mov    %esp,%ebp
 804884b:	83 ec 14             	sub    $0x14,%esp
 804884e:	68 50 9c 04 08       	push   $0x8049c50
 8048853:	ff d0                	call   *%eax
 8048855:	83 c4 10             	add    $0x10,%esp
 8048858:	c9                   	leave  
 8048859:	f3 c3                	repz ret 
 804885b:	90                   	nop
 804885c:	8d 74 26 00          	lea    0x0(%esi,%eiz,1),%esi
 8048860:	b8 50 9c 04 08       	mov    $0x8049c50,%eax
 8048865:	2d 50 9c 04 08       	sub    $0x8049c50,%eax
 804886a:	c1 f8 02             	sar    $0x2,%eax
 804886d:	89 c2                	mov    %eax,%edx
 804886f:	c1 ea 1f             	shr    $0x1f,%edx
 8048872:	01 d0                	add    %edx,%eax
 8048874:	d1 f8                	sar    %eax
 8048876:	74 1b                	je     8048893 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x1f3>
 8048878:	ba 00 00 00 00       	mov    $0x0,%edx
 804887d:	85 d2                	test   %edx,%edx
 804887f:	74 12                	je     8048893 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x1f3>
 8048881:	55                   	push   %ebp
 8048882:	89 e5                	mov    %esp,%ebp
 8048884:	83 ec 10             	sub    $0x10,%esp
 8048887:	50                   	push   %eax
 8048888:	68 50 9c 04 08       	push   $0x8049c50
 804888d:	ff d2                	call   *%edx
 804888f:	83 c4 10             	add    $0x10,%esp
 8048892:	c9                   	leave  
 8048893:	f3 c3                	repz ret 
 8048895:	8d 74 26 00          	lea    0x0(%esi,%eiz,1),%esi
 8048899:	8d bc 27 00 00 00 00 	lea    0x0(%edi,%eiz,1),%edi
 80488a0:	80 3d 8c 9d 04 08 00 	cmpb   $0x0,0x8049d8c
 80488a7:	75 13                	jne    80488bc <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x21c>
 80488a9:	55                   	push   %ebp
 80488aa:	89 e5                	mov    %esp,%ebp
 80488ac:	83 ec 08             	sub    $0x8,%esp
 80488af:	e8 7c ff ff ff       	call   8048830 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x190>
 80488b4:	c6 05 8c 9d 04 08 01 	movb   $0x1,0x8049d8c
 80488bb:	c9                   	leave  
 80488bc:	f3 c3                	repz ret 
 80488be:	66 90                	xchg   %ax,%ax
 80488c0:	b8 00 9b 04 08       	mov    $0x8049b00,%eax
 80488c5:	8b 10                	mov    (%eax),%edx
 80488c7:	85 d2                	test   %edx,%edx
 80488c9:	75 05                	jne    80488d0 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x230>
 80488cb:	eb 93                	jmp    8048860 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x1c0>
 80488cd:	8d 76 00             	lea    0x0(%esi),%esi
 80488d0:	ba 00 00 00 00       	mov    $0x0,%edx
 80488d5:	85 d2                	test   %edx,%edx
 80488d7:	74 f2                	je     80488cb <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x22b>
 80488d9:	55                   	push   %ebp
 80488da:	89 e5                	mov    %esp,%ebp
 80488dc:	83 ec 14             	sub    $0x14,%esp
 80488df:	50                   	push   %eax
 80488e0:	ff d2                	call   *%edx
 80488e2:	83 c4 10             	add    $0x10,%esp
 80488e5:	c9                   	leave  
 80488e6:	e9 75 ff ff ff       	jmp    8048860 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x1c0>
 80488eb:	66 90                	xchg   %ax,%ax
 80488ed:	66 90                	xchg   %ax,%ax
 80488ef:	90                   	nop
 80488f0:	55                   	push   %ebp
 80488f1:	57                   	push   %edi
 80488f2:	31 ff                	xor    %edi,%edi
 80488f4:	56                   	push   %esi
 80488f5:	53                   	push   %ebx
 80488f6:	e8 25 ff ff ff       	call   8048820 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x180>
 80488fb:	81 c3 15 13 00 00    	add    $0x1315,%ebx
 8048901:	83 ec 1c             	sub    $0x1c,%esp
 8048904:	8b 6c 24 30          	mov    0x30(%esp),%ebp
 8048908:	8d b3 ec fe ff ff    	lea    -0x114(%ebx),%esi
 804890e:	e8 b5 fc ff ff       	call   80485c8 <__cxa_atexit@plt-0x38>
 8048913:	8d 83 e4 fe ff ff    	lea    -0x11c(%ebx),%eax
 8048919:	29 c6                	sub    %eax,%esi
 804891b:	c1 fe 02             	sar    $0x2,%esi
 804891e:	85 f6                	test   %esi,%esi
 8048920:	74 27                	je     8048949 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x2a9>
 8048922:	8d b6 00 00 00 00    	lea    0x0(%esi),%esi
 8048928:	8b 44 24 38          	mov    0x38(%esp),%eax
 804892c:	89 2c 24             	mov    %ebp,(%esp)
 804892f:	89 44 24 08          	mov    %eax,0x8(%esp)
 8048933:	8b 44 24 34          	mov    0x34(%esp),%eax
 8048937:	89 44 24 04          	mov    %eax,0x4(%esp)
 804893b:	ff 94 bb e4 fe ff ff 	call   *-0x11c(%ebx,%edi,4)
 8048942:	83 c7 01             	add    $0x1,%edi
 8048945:	39 f7                	cmp    %esi,%edi
 8048947:	75 df                	jne    8048928 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x288>
 8048949:	83 c4 1c             	add    $0x1c,%esp
 804894c:	5b                   	pop    %ebx
 804894d:	5e                   	pop    %esi
 804894e:	5f                   	pop    %edi
 804894f:	5d                   	pop    %ebp
 8048950:	c3                   	ret    
 8048951:	eb 0d                	jmp    8048960 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x2c0>
 8048953:	90                   	nop
 8048954:	90                   	nop
 8048955:	90                   	nop
 8048956:	90                   	nop
 8048957:	90                   	nop
 8048958:	90                   	nop
 8048959:	90                   	nop
 804895a:	90                   	nop
 804895b:	90                   	nop
 804895c:	90                   	nop
 804895d:	90                   	nop
 804895e:	90                   	nop
 804895f:	90                   	nop
 8048960:	f3 c3                	repz ret 

Disassembly of section .fini:

08048964 <.fini>:
 8048964:	53                   	push   %ebx
 8048965:	83 ec 08             	sub    $0x8,%esp
 8048968:	e8 b3 fe ff ff       	call   8048820 <std::basic_ostream<char, std::char_traits<char> >& std::basic_ostream<char, std::char_traits<char> >::_M_insert<long long>(long long)@plt+0x180>
 804896d:	81 c3 a3 12 00 00    	add    $0x12a3,%ebx
 8048973:	83 c4 08             	add    $0x8,%esp
 8048976:	5b                   	pop    %ebx
 8048977:	c3                   	ret    
stderr
prog: prog.cpp:21: int main(): Assertion `calc == calc2' failed.