Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137843 唐俊逸 13投资金额 C++ Compile Error 0 MS 0 KB 345 2025-11-22 18:10:41

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; if(int i;i<=20;i++){ a=a*0.02 } cout<<a; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:8: error: expected primary-expression before 'int'
     if(int i;i<=20;i++){
        ^
Main.cc:9:8: error: expected ')' before 'int'
Main.cc:9:14: error: 'i' was not declared in this scope
     if(int i;i<=20;i++){
              ^
Main.cc:12:11: error: 'a' was not declared in this scope
     cout<