Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133327 李昱龙 07苹果和虫子 C++ Compile Error 0 MS 0 KB 360 2025-10-18 14:51:06

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y,d,e; cin>>n>>x>>y; d = n-y/x; if(y%x>0){ e = d-1; cout<<e<<endl; } else{ cout<<d<<endl; }else if(y>=24){ cout<<0<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:3: error: 'else' without a previous 'if'
  }else if(y>=24){
   ^