/ SeriousOJ /

Record Detail

Compile Error

foo.c: In function 'main':
foo.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^

Code

#include <stdio.h>

int main()
{
	int T;
	scanf("%d",&T);
	while(T--){
		int N;
		scanf("%d",&N);
		int arr[N];
		for(int i=0;i<N;i++){
			scanf("%d",&arr[i]);
			if(arr[i]%3==0){
				printf("%d",arr[i]);
			}
		}
		return 0;
		
   
}

Information

Submit By
Type
Submission
Problem
P1013 Divisible by 3
Contest
Brain booster - 1
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 14:08:13
Judged At
2024-11-11 03:46:24
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes