| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146100 | 刘宸宇 | 参赛组别推荐 | C++ | Compile Error | 0 MS | 0 KB | 310 | 2026-01-25 22:07:25 |
#incluse<bits/stdc++.h> using namespace std; int main(){ int y; cin>>y; if(y<8) cout<<"You are too young!"; else if(y<=12) cout<<"Welcome to Junior Class!"; else if(y<=18) cout<<"Welcome to Senior Class!"; else cout<<"You are too old!"; return 0; }
Main.cc:1:2: error: invalid preprocessing directive #incluse
#incluse
^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin>>y;
^
Main.cc:6:13: error: 'cout' was not declared in this scope
if(y<8) cout<<"You are too young!";
^
Main.cc:7:20: error: 'cout' was not declared in this scope
else if(y<=12) cout<<"Welcome to Junior Class!";
^
Main.cc:8:20: error: 'cout' was not declared in this scope
else if(y<=18) cout<<"Welcome to Senior Class!";
^
Main.cc:9:10: error: 'cout' was not declared in this scope
else cout<<"You are too old!";
^