Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138671 罗晟睿 13投资金额 C++ Compile Error 0 MS 0 KB 173 2025-11-29 13:46:47

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int m; scanf("%d",&m) for(int i=1;i<=20;i++){ m = m*1.2; } printf("%d",m); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:5: error: expected ';' before 'for'
     for(int i=1;i<=20;i++){
     ^
Main.cc:6:17: error: 'i' was not declared in this scope
     for(int i=1;i<=20;i++){
                 ^
Main.cc:6:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i=1;i<=20;i++){
                ^