Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66472 万诗烨 09输出成绩等级 C++ Compile Error 0 MS 0 KB 592 2024-03-09 10:53:25

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int cj; cin>>cj; if(cj>=90){ cout<<"A"<<endl; }else if(cj>=80<90){ cout<<"B"<<endl; }else if(cj>=70<80){ cout<<"C"<<endl; }else if(cj>=60<70){ cout<<"D"<<endl; }else{ cout<<"E"<<endl;#include<bits/stdc++.h> using namespace std; int main(){ int cj; cin>>cj; if(cj>=90){ cout<<"A"<<endl; }else if(cj>=80<90){ cout<<"B"<<endl; }else if(cj>=70<80){ cout<<"C"<<endl; }else if(cj>=60<70){ cout<<"D"<<endl; }else{ cout<<"E"<<endl; } return 0; } } return 0; }


Run Info:

Main.cc:15:19: error: stray '#' in program
   cout<<"E"<
                   ^
Main.cc: In function 'int main()':
Main.cc:8:17: warning: comparison of constant '90' with boolean expression is always true [-Wbool-compare]
  }else if(cj>=80<90){
                 ^
Main.cc:8:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  }else if(cj>=80<90){
             ^
Main.cc:10:17: warning: comparison of constant '80' with boolean expression is always true [-Wbool-compare]
  }else if(cj>=70<80){
                 ^
Main.cc:10:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  }else if(cj>=70<80){
             ^
Main.cc:12:17: warning: comparison of constant '70' with boolean expression is always true [-Wbool-compare]
  }else if(cj>=60<70){
                 ^
Main.cc:12:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  }else if(cj>=60<70){
             ^
Main.cc:15:20: error: 'include' was not declared in this scope
   cout<<"E"<
                    ^
Main.cc:15:28: error: 'bits' was not declared in this scope
   cout<<"E"<
                            ^
Main.cc:15:33: error: 'stdc' was not declared in this scope
   cout<<"E"<
                                 ^
Main.cc:16:1: error: expected primary-expression before 'using'
 using namespace std;
 ^
Main.cc:17:11: error: a function-definition is not allowed here before '{' token
 int main(){
           ^
Main.cc:39:1: error: expected '}' at end of input
 }
 ^
Main.cc:39:1: error: expected '}' at end of input