Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98662 | 黄梓皓 | 参赛组别推荐 | C++ | Compile Error | 0 MS | 0 KB | 353 | 2024-11-23 12:32:13 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n<=8){ cout<<"You are too young"; } else if(n>8&&=12) { cout<<"Welcome to Junior Class"; } else if(n=13&&n=18){ cout<<"Welcome to Senior Class!"; } else if(n>=19){ cout<<"You are too old!" return 0; }
Main.cc: In function 'int main()': Main.cc:9:16: error: expected primary-expression before '=' token else if(n>8&&=12) { ^ Main.cc:12:21: error: lvalue required as left operand of assignment else if(n=13&&n=18){ ^ Main.cc:17:4: error: expected ';' before 'return' return 0; ^ Main.cc:18:1: error: expected '}' at end of input } ^