| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139284 | 向运淇 | 09输出成绩等级 | C++ | Compile Error | 0 MS | 0 KB | 370 | 2025-12-06 12:01:27 |
#include<iostream> using namespace std; int main(){ int score; cin>>score; if (score>=90){ cout<<"A"endl; } else if(score>=80&&score<90){ cout<<"B"<<endl; } else if(score>=70&&score<80){ cout<<"C"<<endl; } else if(score>=60&&score<70){ cout<<"D"<<endl; } else{ cout<<"E"endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:17: error: unable to find string literal operator 'operator""endl' with 'const char [2]', 'long unsigned int' arguments
cout<<"A"endl;
^
Main.cc:19:11: error: unable to find string literal operator 'operator""endl' with 'const char [2]', 'long unsigned int' arguments
cout<<"E"endl;
^