Submission #2703028


Source Code Expand

#include<stdio.h>
long a, b,c;
long count = 0;
int main() {
	scanf_s("%ld,%ld", &a, &b);
	for (a; a <= b; a++) {
		c = (a % 10) * 10 + ((a % 100) / 10);
			if (a / 1000 == c) count++;
	}
	printf("%ld", count);
}

Submission Info

Submission Time
Task B - Palindromic Numbers
User mikoi
Language C++14 (GCC 5.4.1)
Score 0
Code Size 221 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:27: error: ‘scanf_s’ was not declared in this scope
  scanf_s("%ld,%ld", &a, &b);
                           ^