Submission #1219453

#TimeUsernameProblemLanguageResultExecution timeMemory
1219453sleepntsheepPortal (BOI24_portal)C11
1 / 100
0 ms328 KiB
#include <stdio.h>
#include <stdlib.h>

#define N 200000

int n, x[N], y[N];

int main() {
	puts("-1");return 0;
	scanf("%d", &n);
	if (n == 1) {
		puts("-1");
		return 0;
	}
	for (int i = 0; i < n; ++i)
		scanf("%d%d", x + i, y + i);
	printf("%d\n", abs(x[0] - x[1]) + abs(y[0] - y[1]));

	return 0;
}

Compilation message (stderr)

Main.c: In function 'main':
Main.c:10:9: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |         scanf("%d", &n);
      |         ^~~~~~~~~~~~~~~
Main.c:16:17: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   16 |                 scanf("%d%d", x + i, y + i);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...