Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151548 zlx 13求7个数的最大值 C++ Compile Error 0 MS 0 KB 189 2026-04-13 17:24:54

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n; n=81923; for(int i=1;i<=7;i++){ int g; cin>>a; if(a>n){ n=s; } } cout<<n*n<<endl; cout<<n*n*n; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:7: error: 'a' was not declared in this scope
  cin>>a; 
       ^
Main.cc:10:5: error: 's' was not declared in this scope
   n=s; 
     ^
Main.cc:7:6: warning: unused variable 'g' [-Wunused-variable]
  int g; 
      ^