Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2649 候震轩 08判断区间 C++ Compile Error 0 MS 0 KB 194 2024-01-20 14:15:44

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int=a; int=x; int=y; cin>>a>>x>>y; if(x<=a&&a<=y){ cout<<"yes"endl; } else{ cout<<"no"endl; } return 0; }


Run Info:

Main.cc:9:9: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
   cout<"yes"endl;
         ^
Main.cc:12:9: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
   cout<"no"endl;
         ^
Main.cc: In function 'int main()':
Main.cc:4:5: error: expected unqualified-id before '=' token
  int=a; 
     ^
Main.cc:5:5: error: expected unqualified-id before '=' token
  int=x;
     ^
Main.cc:6:5: error: expected unqualified-id before '=' token
  int=y;
     ^
Main.cc:7:7: error: 'a' was not declared in this scope
  cin>>a>>x>>y;
       ^
Main.cc:7:10: error: 'x' was not declared in this scope
  cin>>a>>x>>y;
          ^
Main.cc:7:13: error: 'y' was not declared in this scope
  cin>>a>>x>>y;
             ^
Main.cc:9:14: error: expected ';' before 'endl'
   cout<"yes"endl;
              ^
Main.cc:12:13: error: expected ';' before 'endl'
   cout<<"no"endl;
             ^