| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132310 | 左锶焜 | 13投资金额II | C++ | Compile Error | 0 MS | 0 KB | 445 | 2025-10-07 19:54:32 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int y,m; cin>>y>>m; for(i=y;i<=y+10;i++){ if(i%400==0 || i%4==0 && i%100!=0) { m=m*1.3; } else{ m=m*n; } cout<<m; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:9: error: 'i' was not declared in this scope
for(i=y;i<=y+10;i++){
^
Main.cc:16:10: error: 'n' was not declared in this scope
m=m*n;
^
Main.cc:20:1: error: expected '}' at end of input
}
^