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_39675630_31684.cpp:5:21: error: conflicting declaration 'long long int p'
    5 | int t,n,l,d,a[maxn],p;
      |                     ^
0_0_39675630_31684.cpp:4:23: note: previous declaration as 'const long long int p'
    4 | int const maxn=1e5+10,p=998244353;
      |                       ^
0_0_39675630_31684.cpp:6:10: error: 'node' was not declared in this scope
    6 | bool cmp(node q,node w){
      |          ^~~~
0_0_39675630_31684.cpp:6:17: error: 'node' was not declared in this scope
    6 | bool cmp(node q,node w){
      |                 ^~~~
0_0_39675630_31684.cpp:6:23: error: expression list treated as compound expression in initializer [-fpermissive]
    6 | bool cmp(node q,node w){
      |                       ^
0_0_39675630_31684.cpp: In function 'int main()':
0_0_39675630_31684.cpp:17:18: error: assignment of read-only variable 'p'
   17 |                 p=a[1];
      |                 ~^~~~~


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 09:42:38, Gzip enabled