Submission #97673


Source Code Expand

Copy
#include<stdio.h>

int Main(void){
	int n,sum, cnt,i,j;
	scanf("%d",&n);
	int a[n];
	for(i=0; i<n; i++){
		scanf("%d", &a[i]);
	}
	for(i=0; i<n; i++){
		for(j=0; j<i-1;j++){
			cnt++; 
		}
	}
	printf("%d\n",cnt);
}

Submission Info

Submission Time
Task A - コンテスト
User averoom
Language C (GCC 4.6.4)
Score 0
Code Size 229 Byte
Status CE

Compile Error

./Main.c: In function ‘Main’:
./Main.c:5:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
./Main.c:8:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status