Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160515 曾钰涵 13投资金额II C++ Compile Error 0 MS 0 KB 214 2026-09-19 16:03:08

Tests(0/0):


Code:

#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+=1*0.2; } cout<<i; return 0; }


Run Info:

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<