Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137323 王晨逸 07判断正负数 C++ Compile Error 0 MS 0 KB 167 2025-11-17 16:12:51

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:13: error: expected '}' at end of input
     return 0;
             ^
Main.cc:4:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &a);
                    ^