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_22219154_15800.cpp: In function 'int main()':
0_0_22219154_15800.cpp:27:25: error: 'memset' was not declared in this scope
   memset(q, 0, sizeof(q));
                         ^
0_0_22219154_15800.cpp: At global scope:
0_0_22219154_15800.cpp:55:5: error: redefinition of 'int n'
 int n, m, i_max;
     ^
0_0_22219154_15800.cpp:8:5: note: 'int n' previously declared here
 int n, m, i_max;
     ^
0_0_22219154_15800.cpp:55:8: error: redefinition of 'int m'
 int n, m, i_max;
        ^
0_0_22219154_15800.cpp:8:8: note: 'int m' previously declared here
 int n, m, i_max;
        ^
0_0_22219154_15800.cpp:55:11: error: redefinition of 'int i_max'
 int n, m, i_max;
           ^
0_0_22219154_15800.cpp:8:11: note: 'int i_max' previously declared here
 int n, m, i_max;
           ^
0_0_22219154_15800.cpp:57:19: error: conflicting declaration 'int q [100300]'
 int q[100000 + 300];
                   ^
0_0_22219154_15800.cpp:10:5: note: previous declaration as 'int q [100010]'
 int q[100000 + 10];
     ^
0_0_22219154_15800.cpp: In function 'void solve()':
0_0_22219154_15800.cpp:59:6: error: redefinition of 'void solve()'
 void solve(){
      ^
0_0_22219154_15800.cpp:12:6: note: 'void solve()' previously defined here
 void solve(){
      ^
0_0_22219154_15800.cpp: In function 'int main()':
0_0_22219154_15800.cpp:76:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_22219154_15800.cpp:25:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_22219154_15800.cpp: At global scope:
0_0_22219154_15800.cpp:93:1: error: expected unqualified-id before '<' token
 </int></cstring></vector></algorithm></cstdio></int></queue></map></algorithm></cstdio>
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 16:53:05, Gzip enabled