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_38744659_28252.cpp: In function 'int main()':
0_0_38744659_28252.cpp:97:22: error: too few arguments to function 'll getinv(ll, ll)'
   97 |         ll p=a*getinv(b);
      |                ~~~~~~^~~
0_0_38744659_28252.cpp:19:4: note: declared here
   19 | ll getinv(ll a,ll mod)
      |    ^~~~~~
0_0_38744659_28252.cpp:98:23: error: too few arguments to function 'll getinv(ll, ll)'
   98 |         ll invp=getinv(p);
      |                 ~~~~~~^~~
0_0_38744659_28252.cpp:19:4: note: declared here
   19 | ll getinv(ll a,ll mod)
      |    ^~~~~~
0_0_38744659_28252.cpp:99:27: error: too few arguments to function 'll getinv(ll, ll)'
   99 |         ll ip=(b-a)*getinv(b);
      |                     ~~~~~~^~~
0_0_38744659_28252.cpp:19:4: note: declared here
   19 | ll getinv(ll a,ll mod)
      |    ^~~~~~
0_0_38744659_28252.cpp:102:9: error: expected ',' or ';' before 'for'
  102 |         for(int i=n,j=1;i>=1;i--,j++)
      |         ^~~
0_0_38744659_28252.cpp:102:25: error: 'i' was not declared in this scope; did you mean 'ip'?
  102 |         for(int i=n,j=1;i>=1;i--,j++)
      |                         ^
      |                         ip
0_0_38744659_28252.cpp:102:34: error: 'j' was not declared in this scope
  102 |         for(int i=n,j=1;i>=1;i--,j++)
      |                                  ^


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-07-01 15:54:02, Gzip enabled