Compile Error

foo.cc: In function 'int main()':
foo.cc:5:10: error: expected unqualified-id before ';' token
    5 |  int a,b,;
      |          ^
foo.cc:11:2: error: 'else' without a previous 'if'
   11 |  else if(b<a)
      |  ^~~~
foo.cc:13:6: error: redeclaration of 'int c'
   13 |  int c=b/a;
      |      ^
foo.cc:8:6: note: 'int c' previously declared here
    8 |  int c=a/b;
      |      ^
foo.cc:14:6: error: redeclaration of 'int d'
   14 |  int d=b%a;
      |      ^
foo.cc:9:6: note: 'int d' previously declared here
    9 |  int d=a%b;
      |      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1687 整数除法求商和余数
语言
C++
递交时间
2021-12-22 17:04:10
评测时间
2021-12-22 17:04:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes