/ SB域 /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:3: error: 'cin' undeclared (first use in this function)
   cin>>m>>n;
   ^~~
/in/foo.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:17:2: error: 'cout' undeclared (first use in this function)
  cout<<k*l/n;
  ^~~~

代码

#include <stdio.h>

int main()
{
    printf("hello, world\n");
	 int m,n,r=0,k=0,l=0;
  cin>>m>>n;
  k=m;
  l=n;
  r=m%n;
    while (r!=0)
	{
	m=n;
	n=r;
	r=m%n;
	}
	cout<<k*l/n;
  return 0;
}

信息

递交者
类型
递交
题目
【模板】最小公倍数
题目数据
下载
语言
C
递交时间
2019-11-04 21:58:02
评测时间
2019-11-04 21:58:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes