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]);
^
|