Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102084 揭伟琦 累加问题 C++ Compile Error 0 MS 0 KB 144 2024-12-21 11:57:37

Tests(0/0):


Code:

#include<iostream> using namespace std; void l(int a){ if(a<=100){ cout <<a<<endl; l(a+1) } } int main() { l(1); return 0; }


Run Info:

Main.cc: In function 'void l(int)':
Main.cc:7:2: error: expected ';' before '}' token
  }
  ^