Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7180 | 张文曦 | 生理周期 | C++ | Compile Error | 0 MS | 0 KB | 430 | 2025-04-05 14:52:38 |
#include<iostream> using namespace std; int main(){ int p,e,i,d; cin>>p>>e>>i>>d; for(int pp=1;pp<=21252/23;pp++){ for(int ee=1;ee<=21252/28;ee++){ for(int ii=1;ii<=21252/33;ii++){ if(p+pp*23==e+ee*28&&e+ee*28==i+ii*33){ cout<<"the next triple peak occurs in "<<p+pp*23-d<<" days." } } } } return 0; }
Main.cc: In function 'int main()': Main.cc:12:17: error: expected ';' before '}' token } ^