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_39304905_7526.cpp:16:7: error: conflicting declaration 'int N'
   16 | int S,N,n;
      |       ^
0_0_39304905_7526.cpp:14:11: note: previous declaration as 'const int N'
   14 | const int N = 1e6+10;
      |           ^
0_0_39304905_7526.cpp: In function 'void solve()':
0_0_39304905_7526.cpp:20:11: error: assignment of read-only variable 'N'
   20 |     S = N = 0;
      |         ~~^~~
0_0_39304905_7526.cpp:23:16: error: 'x' was not declared in this scope
   23 |         cin >> x;
      |                ^


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-03 02:28:32, Gzip enabled