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_39484335_6729.cpp: In function 'void add(long long int&, long long int)':
0_0_39484335_6729.cpp:23:14: error: 'mod' was not declared in this scope; did you mean 'modf'?
   23 |     if (a >= mod) a -= mod;
      |              ^~~
      |              modf
0_0_39484335_6729.cpp: In function 'void sub(long long int&, long long int)':
0_0_39484335_6729.cpp:27:20: error: 'mod' was not declared in this scope; did you mean 'modf'?
   27 |         if(a<0) a+=mod;
      |                    ^~~
      |                    modf
0_0_39484335_6729.cpp: In function 'long long int qmi(long long int, long long int)':
0_0_39484335_6729.cpp:35:36: error: 'mod' was not declared in this scope; did you mean 'modf'?
   35 |         if (b & 1) res = res * a % mod;
      |                                    ^~~
      |                                    modf
0_0_39484335_6729.cpp:36:21: error: 'mod' was not declared in this scope; did you mean 'modf'?
   36 |         a = a * a % mod;
      |                     ^~~
      |                     modf


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-12-02 03:39:55, Gzip enabled