| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68967 | 余慕涵 | 生理周期 | C++ | Compile Error | 0 MS | 0 KB | 1187 | 2024-03-29 20:51:44 |
#include <iostream> #include <cstdio> using namespace std; int main(){ int i,j,k,p,e,l,d,num=0; scanf("%d %d %d %d",&p,&e,&l,&d); for(i=1;i<=924;i++){ for(j=1;j<=759;j++){ for(k=1;k<=644;k++){ if(((p+i*23)==(e+j*28))&&((p+i*23)==(i+k*33))) printf("the next triple peak occurs in %d days.n",p+i*23-d) } }}} } return 0; }
Main.cc: In function 'int main()':
Main.cc:14:1: error: expected ';' before '}' token
} }}}
^
Main.cc:6:22: warning: unused variable 'num' [-Wunused-variable]
int i,j,k,p,e,l,d,num=0;
^
Main.cc: At global scope:
Main.cc:16:1: error: expected declaration before '}' token
}
^
Main.cc: In function 'int main()':
Main.cc:7:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&p,&e,&l,&d);
^