Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97699 何松羽 输出成绩等级II C++ Compile Error 0 MS 0 KB 344 2024-11-16 12:58:44

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C,D,n,s,f,i; if(n>=90&&n<=100){ cout<<"n的成绩等级为:A" } if(n>=80&&n<=90){ cout<<"s的成绩等级为:B" } if(n>=70&&n<=80){ cout<<"f的成绩等级为:C" } if(n<=60&&n<=70){ cout<<"f的成绩等级为:D" } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:2: error: expected ';' before '}' token
  }
  ^
Main.cc:10:2: error: expected ';' before '}' token
  }
  ^
Main.cc:13:2: error: expected ';' before '}' token
  }
  ^
Main.cc:16:2: error: expected ';' before '}' token
  }
  ^
Main.cc:4:6: warning: unused variable 'A' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
      ^
Main.cc:4:8: warning: unused variable 'B' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
        ^
Main.cc:4:10: warning: unused variable 'C' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
          ^
Main.cc:4:12: warning: unused variable 'D' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
            ^
Main.cc:4:16: warning: unused variable 's' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
                ^
Main.cc:4:18: warning: unused variable 'f' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
                  ^
Main.cc:4:20: warning: unused variable 'i' [-Wunused-variable]
  int A,B,C,D,n,s,f,i;
                    ^