Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76496 陈俊洁 最大值与最小值的差 C++ Compile Error 0 MS 0 KB 158 2024-06-02 14:58:58

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int a[m]; int main(){ int max; for( int i=1;i<=m;i++){ if(max<i){ max=i; } cout<<a[max]; } }


Run Info:

Main.cc:3:7: error: 'm' was not declared in this scope
 int a[m]; 
       ^
Main.cc: In function 'int main()':
Main.cc:6:17: error: 'm' was not declared in this scope
 for( int i=1;i<=m;i++){
                 ^
Main.cc:10:8: error: 'a' was not declared in this scope
  cout<