Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152934 丁昭臣 找最大的数 C++ Compile Error 0 MS 0 KB 312 2026-05-06 18:48:24

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a[105],n; cin>>n; int max=a[1]; for(int i=2;i<=n;i++){ if(a[i]>max){ max=a[i]; } } cout<<max; } 666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666


Run Info:

Main.cc:14:1: warning: integer constant is too large for its type
 666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
 ^
Main.cc:14:1: error: expected unqualified-id before numeric constant