a1014: initialize array to make sure it runs correctly

This commit is contained in:
Oliver Lew
2021-03-20 03:04:52 +08:00
parent 538eeaac31
commit 0d9f337d1c
+1 -1
View File
@@ -8,7 +8,7 @@
int main()
{
int N, M, K, Q, query;
int time[1000], queue[20][11] = {{0}};
int time[1000] = {0}, queue[20][11] = {{0}};
int front[20] = {0}, rear[20] = {0}, length[20] = {0};
scanf("%d %d %d %d", &N, &M, &K, &Q);