| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78671 | 刘珩宇 | 13投资金额II | C++ | Compile Error | 0 MS | 0 KB | 238 | 2024-06-23 15:52:56 |
#include<iostream> using namespace std; int main() { int y,m; int i; cin>>n; for(i=y;i<=y+10;i+=1){ if((y%4==0 && y%100!=0)||(y%400==0)){ m*=1.3; } else{ m*=1.2 } } cout<<m; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:6: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:14:5: error: expected ';' before '}' token
}
^