Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4367 | 黄言岐 | 13投资金额 | C++ | Compile Error | 0 MS | 0 KB | 224 | 2024-08-16 16:20:59 |
#include<iostream> using namespace std; int main(){ int y; cin>>y; for(int i=1;i<=21;i++){ else{ m=m*1.2; } y++; } cout<<y<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:8:9: error: 'else' without a previous 'if' else{ ^ Main.cc:9:13: error: 'm' was not declared in this scope m=m*1.2; ^