| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160519 | 曾钰涵 | 13投资金额II | C++ | Compile Error | 0 MS | 0 KB | 214 | 2026-09-19 16:03:51 |
#include<bits/stdc++.h> using namespace std; int main(){ int y,m; cin>>y>>m; for(int i=y;i<=y+10;i++){ if(i%4==0&&i%100!=0||i%400==0){ i+=i*0.3; } else i+=i*0.2; } cout<<i; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(i%4==0&&i%100!=0||i%400==0){
^
Main.cc:12:8: error: 'i' was not declared in this scope
cout<