Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70429 尚雨钒 07判断正负数 C++ Compile Error 0 MS 0 KB 149 2024-04-14 14:41:13

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>b){ cout<<a; } if(b>a){ cout<<b; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:7: error: 'b' was not declared in this scope
  if(a>b){
       ^
Main.cc:9:8: error: 'b' was not declared in this scope
     if(b>a){
        ^