| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157766 | 张蔚林 | 闰年的数量 | C++ | Compile Error | 0 MS | 0 KB | 194 | 2026-08-17 13:26:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,c=0; cin>>x>>y; for(int i=x;i<=y;i++){ if((i%4==0&&i%100!==0)||i%400==0){ c++; } } cout<<c; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:22: error: expected primary-expression before '=' token
if((i%4==0&&i%100!==0)||i%400==0){
^