Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4323 黄言岐 13投资金额II C++ Compile Error 0 MS 0 KB 295 2024-08-16 14:59:51

Tests(0/0):


Code:

include<iostream> using namespace std; int main(){ int y, m; cin>>y>>m; for(int i=1;i<=11;i++){ if(y%400==0||(y%100!=0&&y%4==0)){ m=m*1.3; } else{ m=m*1.2; } y++; } cout<<m<<endl; return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
     cin>>y>>m;
     ^
Main.cc:15:5: error: 'cout' was not declared in this scope
     cout<m<<endl;
     ^
Main.cc:15:14: error: 'endl' was not declared in this scope
     cout<<m<<endl;
              ^