Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116253 李鸿文添 13投资金额 C++ Compile Error 0 MS 0 KB 381 2025-04-07 19:28:30

Tests(0/0):


Code:

#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 M; cin>>M; for(int i=1;i<=20;i++){ m=m*1.2; } cout<<M; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:7: error: 'm' was not declared in this scope
       m=m*1.2;
       ^