| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 | 
|---|---|---|---|---|---|---|---|---|
| 135180 | 林睿 | 最大公约数和最小公倍数 | C++ | Compile Error | 0 MS | 0 KB | 240 | 2025-11-02 17:33:39 | 
#include<bits/stdc++.h> using namespace std; int vsandpk(int a,b,man){ for(int i=1;i<=a;i++){ if(a*i&&b*i){ man=i; } } cout<<man; return man; } int main(){ int a,b; cin>>a>>b; cout<<vsandpk(a,b); return 0; }
Main.cc:3:19: error: 'b' has not been declared
 int vsandpk(int a,b,man){
                   ^
Main.cc:3:21: error: 'man' has not been declared
 int vsandpk(int a,b,man){
                     ^
Main.cc: In function 'int vsandpk(int, int, int)':
Main.cc:5:11: error: 'b' was not declared in this scope
   if(a*i&&b*i){
           ^
Main.cc:6:4: error: 'man' was not declared in this scope
    man=i; 
    ^
Main.cc:9:8: error: 'man' was not declared in this scope
  cout<