记录详情

Compile Error

/in/foo.cc: In function 'int mian()':
/in/foo.cc:12:2: error: expected ';' before 'scanf'
  scanf("%d%d-%d%d",&a,&b,&c,&d);
  ^~~~~
/in/foo.cc:12:32: warning: statement is a reference, not call, to function 'scanf' [-Waddress]
  scanf("%d%d-%d%d",&a,&b,&c,&d);
                                ^
/in/foo.cc:12:32: warning: statement has no effect [-Wunused-value]
/in/foo.cc:14:18: error: lvalue required as left operand of assignment
  int fenzi=a*d=b*c;
                  ^
/in/foo.cc:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
素数
题目数据
下载
语言
C++
递交时间
2019-05-11 16:39:28
评测时间
2019-05-11 16:39:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes