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_39330490_5036.cpp: In function 'void solve()':
0_0_39330490_5036.cpp:8:13: error: expected primary-expression before 'long'
    8 | #define int long long
      |             ^~~~
0_0_39330490_5036.cpp:33:50: note: in expansion of macro 'int'
   33 |                         ans = (ans + sum[point + int(pow(n,i -1)) - 1] - sum[point - 1]) % p;
      |                                                  ^~~
0_0_39330490_5036.cpp:33:49: error: expected ']' before 'long'
   33 |                         ans = (ans + sum[point + int(pow(n,i -1)) - 1] - sum[point - 1]) % p;
      |                                                 ^
      |                                                 ]
0_0_39330490_5036.cpp:33:49: error: expected ')' before 'long'
   33 |                         ans = (ans + sum[point + int(pow(n,i -1)) - 1] - sum[point - 1]) % p;
      |                               ~                 ^
      |                                                 )
0_0_39330490_5036.cpp:8:13: error: expected primary-expression before 'long'
    8 | #define int long long
      |             ^~~~
0_0_39330490_5036.cpp:34:41: note: in expansion of macro 'int'
   34 |                         cout << point + int(pow(n,i -1)) - 1 << " ---" << endl;
      |                                         ^~~


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:13:14, Gzip enabled