/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int dfs(int, int, int)':
/in/foo.cc:6:5: error: 'plate' was not declared in this scope
  if(plate==0)return 1;
     ^~~~~
/in/foo.cc:7:23: error: 'plate' was not declared in this scope
  for(int i=ceil(apple/plate);i<=apple>last?last:apple;i++){
                       ^~~~~
/in/foo.cc:7:28: error: 'ceil' was not declared in this scope
  for(int i=ceil(apple/plate);i<=apple>last?last:apple;i++){
                            ^
/in/foo.cc:7:31: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  for(int i=ceil(apple/plate);i<=apple>last?last:apple;i++){
                              ~^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:7: error: 'k' was not declared in this scope
  cin>>k;
       ^

信息

递交者
类型
递交
题目
Placing Apples
语言
C++
递交时间
2019-01-29 15:50:30
评测时间
2019-01-29 15:50:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes