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_34661782_22959.cpp:4:8: error: array bound is not an integer constant before ']' token
 int n[N],t[N];
        ^
0_0_34661782_22959.cpp:4:13: error: array bound is not an integer constant before ']' token
 int n[N],t[N];
             ^
0_0_34661782_22959.cpp: In function 'void merge(int, int, int)':
0_0_34661782_22959.cpp:28:13: error: 'n' was not declared in this scope
         if (n[i]<=n[j])  t[p++]=n[i++];
             ^
0_0_34661782_22959.cpp:28:26: error: 't' was not declared in this scope
         if (n[i]<=n[j])  t[p++]=n[i++];
                          ^
0_0_34661782_22959.cpp:32:12: error: 't' was not declared in this scope
            t[p++]=n[j++];
            ^
0_0_34661782_22959.cpp:35:21: error: 't' was not declared in this scope
     while (i<=mid)  t[p++]=n[i++];
                     ^
0_0_34661782_22959.cpp:35:28: error: 'n' was not declared in this scope
     while (i<=mid)  t[p++]=n[i++];
                            ^
0_0_34661782_22959.cpp:36:26: error: 't' was not declared in this scope
     while (j<=right)     t[p++]=n[j++]; 
                          ^
0_0_34661782_22959.cpp:36:33: error: 'n' was not declared in this scope
     while (j<=right)     t[p++]=n[j++]; 
                                 ^
0_0_34661782_22959.cpp:39:9: error: 'n' was not declared in this scope
         n[j++]=t[i];
         ^
0_0_34661782_22959.cpp:39:16: error: 't' was not declared in this scope
         n[j++]=t[i];
                ^
0_0_34661782_22959.cpp: In function 'int main()':
0_0_34661782_22959.cpp:51:28: error: invalid types 'int[int]' for array subscript
             scanf("%d",&n[i]);
                            ^


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 10:38:19, Gzip enabled