| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160513 | 曾钰涵 | 13投资金额II | C++ | Compile Error | 0 MS | 0 KB | 223 | 2026-09-19 16:02:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int y,m; cin>>y>>m; for(int i=y;i<=y+10;i++){ if(y%4==0&&y%100!=0||y%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(y%4==0&&y%100!=0||y%400==0){
^
Main.cc:12:11: error: 'i' was not declared in this scope
cout<