Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78074 张黄源 15求两个数的最大公约数 C++ Runtime Error 0 MS 272 KB 190 2024-06-16 14:19:52

Tests(0/10):


Code:

#include<iostream> using namespace std; int main() { int m,n,x; int i; cin>>m>>n; while(i <= m && i <= n) { if(m % i==0){ x = i; } i++; } cout<<x; return 0; }


Run Info:

Runtime Error:Floating point exception