Language: C

int32_t A[200000];

int main(void) {
	uint32_t N;
	uint32_t zeroCount = 0;

	scanf("%"PRIu32"\n", &N);

	for (uint32_t idx = 0; idx < N - 1; idx++) {
		scanf("%"PRId32" ", &(A[idx]));
	}
	scanf("%"PRId32" ", &(A[N - 1]));

	for (uint32_t beginIdx = 0; beginIdx < N; beginIdx++) {
		int32_t sum = 0;
		for (uint32_t idx = beginIdx; idx < N; idx++) {
			sum += A[idx];
			if (sum == 0) {
				zeroCount++;
			}
		}
	}

	printf("%"PRIu32, zeroCount);

	return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'int32_t'
    1 | int32_t A[200000];
      | ^~~~~~~
main.c:1:1: note: 'int32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
  +++ |+#include <stdint.h>
    1 | int32_t A[200000];
main.c: In function 'main':
main.c:4:9: error: unknown type name 'uint32_t'
    4 |         uint32_t N;
      |         ^~~~~~~~
main.c:4:9: note: 'uint32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:5:9: error: unknown type name 'uint32_t'
    5 |         uint32_t zeroCount = 0;
      |         ^~~~~~~~
main.c:5:9: note: 'uint32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:7:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |         scanf("%"PRIu32"\n", &N);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int32_t A[200000];
main.c:7:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |         scanf("%"PRIu32"\n", &N);
      |         ^~~~~
main.c:7:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:18: error: expected ')' before 'PRIu32'
    7 |         scanf("%"PRIu32"\n", &N);
      |              ~   ^~~~~~
      |                  )
main.c:1:1: note: 'PRIu32' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
  +++ |+#include <inttypes.h>
    1 | int32_t A[200000];
main.c:9:14: error: unknown type name 'uint32_t'
    9 |         for (uint32_t idx = 0; idx < N - 1; idx++) {
      |              ^~~~~~~~
main.c:9:14: note: 'uint32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:10:26: error: expected ')' before 'PRId32'
   10 |                 scanf("%"PRId32" ", &(A[idx]));
      |                      ~   ^~~~~~
      |                          )
main.c:10:26: note: 'PRId32' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
   10 |                 scanf("%"PRId32" ", &(A[idx]));
      |                          ^~~~~~
main.c:12:18: error: expected ')' before 'PRId32'
   12 |         scanf("%"PRId32" ", &(A[N - 1]));
      |              ~   ^~~~~~
      |                  )
main.c:12:18: note: 'PRId32' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
   12 |         scanf("%"PRId32" ", &(A[N - 1]));
      |                  ^~~~~~
main.c:14:14: error: unknown type name 'uint32_t'
   14 |         for (uint32_t beginIdx = 0; beginIdx < N; beginIdx++) {
      |              ^~~~~~~~
main.c:14:14: note: 'uint32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:15:17: error: unknown type name 'int32_t'
   15 |                 int32_t sum = 0;
      |                 ^~~~~~~
main.c:15:17: note: 'int32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:16:22: error: unknown type name 'uint32_t'
   16 |                 for (uint32_t idx = beginIdx; idx < N; idx++) {
      |                      ^~~~~~~~
main.c:16:22: note: 'uint32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
main.c:24:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   24 |         printf("%"PRIu32, zeroCount);
      |         ^~~~~~
main.c:24:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:24:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:19: error: expected ')' before 'PRIu32'
   24 |         printf("%"PRIu32, zeroCount);
      |               ~   ^~~~~~
      |                   )
main.c:24:19: note: 'PRIu32' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
   24 |         printf("%"PRIu32, zeroCount);
      |                   ^~~~~~