Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115151 胡海峰老师 2020 C Compile Error 0 MS 0 KB 159 2025-03-29 15:29:12

Tests(0/0):


Code:

#include <stdio.h> int main() { int year; scanf("%d",&year); if( year/100 == y%100) printf("YES"); else printf("NO"); return 0; }


Run Info:

Main.c: In function 'main':
Main.c:6:18: error: 'y' undeclared (first use in this function)
  if( year/100 == y%100)
                  ^
Main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
Main.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&year);
  ^