Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135176 郑喆哲 最大公约数和最小公倍数 C++ Compile Error 0 MS 0 KB 186 2025-11-02 17:24:57

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a,b,gun; cin>>a>>b; for(int i=1;i<=a;i++) { if(a%i==0&&b%i==0) { gun=i } } cout<<gun; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:3: error: expected ';' before '}' token
   }
   ^