Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
143680 8 输出较大的数 C++ Compile Error 0 MS 0 KB 309 2026-01-17 14:49:15

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a[100]={}; int n,max; cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; } max=a[0]; for(int j=0;j<n;j++){ if(a[j]>max){ max=a[j]; } } cout<<max<<d<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:16: error: 'd' was not declared in this scope
     cout<