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_38707835_2344.cpp:3:13: error: 'lon' does not name a type; did you mean 'long'?
    3 | #define int lon glong
      |             ^~~
0_0_38707835_2344.cpp:6:1: note: in expansion of macro 'int'
    6 | int fm(int a,int b)
      | ^~~
0_0_38707835_2344.cpp: In function 'int main()':
0_0_38707835_2344.cpp:3:13: error: 'lon' was not declared in this scope; did you mean 'long'?
    3 | #define int lon glong
      |             ^~~
0_0_38707835_2344.cpp:20:9: note: in expansion of macro 'int'
   20 |         int t,n,m;
      |         ^~~
0_0_38707835_2344.cpp:21:10: error: 't' was not declared in this scope; did you mean 'tm'?
   21 |     cin>>t;
      |          ^
      |          tm
0_0_38707835_2344.cpp:24:14: error: 'n' was not declared in this scope
   24 |         cin>>n>>m;
      |              ^
0_0_38707835_2344.cpp:24:17: error: 'm' was not declared in this scope; did you mean 'tm'?
   24 |         cin>>n>>m;
      |                 ^
      |                 tm
0_0_38707835_2344.cpp:25:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |         ans = ((fm(m,n + 1) - 1) * powt(m - 1,mod - 2) % mod + mod) % mod;
      |         ^~~
      |         abs
0_0_38707835_2344.cpp:25:17: error: 'fm' was not declared in this scope; did you mean 'tm'?
   25 |         ans = ((fm(m,n + 1) - 1) * powt(m - 1,mod - 2) % mod + mod) % mod;
      |                 ^~
      |                 tm
0_0_38707835_2344.cpp:25:36: error: 'powt' was not declared in this scope; did you mean 'powl'?
   25 |         ans = ((fm(m,n + 1) - 1) * powt(m - 1,mod - 2) % mod + mod) % mod;
      |                                    ^~~~
      |                                    powl


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-05-18 19:43:16, Gzip enabled