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_4574595_21209.cpp: In member function `int Prime<T>::factorization(T)':
0_0_4574595_21209.cpp:41: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available
0_0_4574595_21209.cpp:41: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_4574595_21209.cpp: In member function `int Prime<T>::factorization(T) [with T = I64]':
0_0_4574595_21209.cpp:66:   instantiated from here
0_0_4574595_21209.cpp:41: error: `sqrt' undeclared (first use this function)
0_0_4574595_21209.cpp:41: error: (Each undeclared identifier is reported only once for each function it appears in.)


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-13 12:47:51, Gzip enabled