F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38339367_22454.cpp: In instantiation of 'constexpr int MInt<P>::norm(int) const [with int P = 1000000007]':
0_0_38339367_22454.cpp:26:41:   required from 'constexpr MInt<P>::MInt(i64) [with int P = 1000000007; i64 = long long int]'
0_0_38339367_22454.cpp:112:47:   required from here
0_0_38339367_22454.cpp:36:5: error: body of constexpr function 'constexpr int MInt<P>::norm(int) const [with int P = 1000000007]' not a return-statement
     }
     ^
0_0_38339367_22454.cpp: In instantiation of 'constexpr MInt<P>& MInt<P>::operator*=(MInt<P>) const [with int P = 1000000007]':
0_0_38339367_22454.cpp:69:13:   required from 'constexpr MInt<1000000007> operator*(MInt<1000000007>, MInt<1000000007>)'
0_0_38339367_22454.cpp:124:37:   required from here
0_0_38339367_22454.cpp:53:11: error: assignment of member 'MInt<1000000007>::x' in read-only object
         x = 1LL * x * rhs.x % P;
           ^
0_0_38339367_22454.cpp:54:17: error: invalid initialization of reference of type 'MInt<1000000007>&' from expression of type 'const MInt<1000000007>'
         return *this;
                 ^
0_0_38339367_22454.cpp:55:5: error: body of constexpr function 'constexpr MInt<P>& MInt<P>::operator*=(MInt<P>) const [with int P = 1000000007]' not a return-statement
     }
     ^
0_0_38339367_22454.cpp: In instantiation of 'constexpr MInt<1000000007> operator*(MInt<1000000007>, MInt<1000000007>)':
0_0_38339367_22454.cpp:124:37:   required from here
0_0_38339367_22454.cpp:71:5: error: body of constexpr function 'constexpr MInt<1000000007> operator*(MInt<1000000007>, MInt<1000000007>)' not a return-statement
     }
     ^
0_0_38339367_22454.cpp: In instantiation of 'constexpr T power(T, i64) [with T = MInt<1000000007>; i64 = long long int]':
0_0_38339367_22454.cpp:50:34:   required from 'constexpr MInt<P> MInt<P>::inv() const [with int P = 1000000007]'
0_0_38339367_22454.cpp:126:34:   required from here
0_0_38339367_22454.cpp:20:1: error: body of constexpr function 'constexpr T power(T, i64) [with T = MInt<1000000007>; i64 = long long int]' not a return-statement
 }
 ^
0_0_38339367_22454.cpp: In instantiation of 'constexpr MInt<P> MInt<P>::inv() const [with int P = 1000000007]':
0_0_38339367_22454.cpp:126:34:   required from here
0_0_38339367_22454.cpp:51:5: error: body of constexpr function 'constexpr MInt<P> MInt<P>::inv() const [with int P = 1000000007]' not a return-statement
     }
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 12:55:10, Gzip enabled