Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66017 何冠宇 08判断区间 C++ Compile Error 0 MS 0 KB 212 2024-03-02 10:45:47

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,x,y; scanf("%d %d %d",&a,&x,&y); if(x<=a){ if(a<=y) cout<<"yes"; }else{ cout<<"no"; } }else{ cout<<"no";} return 0; }


Run Info:

Main.cc:13:3: error: expected unqualified-id before 'else'
  }else{
   ^
Main.cc:15:2: error: expected unqualified-id before 'return'
  return 0;
  ^
Main.cc:16:1: error: expected declaration before '}' token
 }
 ^
Main.cc: In function 'int main()':
Main.cc:6:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d",&a,&x,&y);
                            ^