Compile Error

foo.cc: In function 'int main()':
foo.cc:6:8: error: redeclaration of 'int n'
    6 |  int n,n,r;
      |        ^
foo.cc:6:6: note: 'int n' previously declared here
    6 |  int n,n,r;
      |      ^
foo.cc:7:7: error: 'm' was not declared in this scope
    7 |  cin>>m>>n;
      |       ^
foo.cc:17:9: error: expected ';' before 'int'
   17 |  cout<<n
      |         ^
      |         ;
   18 |  int m,n,k;
      |  ~~~     
foo.cc:20:2: error: 'k' was not declared in this scope
   20 |  k=m;
      |  ^
foo.cc:16:6: warning: unused variable 't' [-Wunused-variable]
   16 |  int t=x%y/n;
      |      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1041 最大公约数和最小公倍数
语言
C++
递交时间
2021-12-11 10:14:19
评测时间
2021-12-11 10:14:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes