Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144652 王峻熙 07判断正负数 C++ Compile Error 0 MS 0 KB 200 2026-01-24 14:49:03

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a; cin>>a; a!=0 if(0<a){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:5: error: expected ';' before 'if'
     if(0