Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2667 孙浚轩 求最大值 C++ Compile Error 0 MS 0 KB 186 2024-01-20 15:51:51

Tests(0/0):


Code:

#include<iostream using namespace std; int main(){ int a[10],m=-2147483648,i=0; while(i<10){ cin>>a[i]; if(a[i]>m) m=i; } cout<<a[m];


Run Info:

Main.cc:1:18: error: missing terminating > character
 #include<iostream
                  ^
Main.cc: In function 'int main()':
Main.cc:10:15: error: expected '}' at end of input
     cout<<a[m];
               ^