Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117177 | 胡海峰老师 | 求最大值 | C++ | Compile Error | 0 MS | 0 KB | 264 | 2025-04-13 20:54:43 |
#include <iostream> using namespace std; int main(){ int max = -999; // 数组array a[] n数组长度 for (int i = 1;i <= 10;i++) { int tmp; cin>>tmp if (tmp>max) max = tmp; } cout<<max; return 0; }
Main.cc: In function 'int main()': Main.cc:12:3: error: expected ';' before 'if' if (tmp>max) ^