| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135421 | ggh | 07今天很热 | C++ | Compile Error | 0 MS | 0 KB | 198 | 2025-11-03 17:17:54 |
using namespace std; int main() { int temperature; cin >> temperature; if (temperature > 30) { cout << "hot" << endl; } else { cout << "cold"; }
Main.cc:10:9: error: stray '\357' in program
cout << "cold";
^
Main.cc:10:9: error: stray '\274' in program
Main.cc:10:9: error: stray '\233' in program
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin >> temperature;
^
Main.cc:8:9: error: 'cout' was not declared in this scope
cout << "hot" << endl;
^
Main.cc:8:26: error: 'endl' was not declared in this scope
cout << "hot" << endl;
^
Main.cc:10:9: error: 'cout' was not declared in this scope
cout << "cold";
^
Main.cc:11:5: error: expected '}' at end of input
}
^