Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159625 曾钰涵 13求n的阶乘 C++ Compile Error 0 MS 0 KB 181 2026-09-05 16:52:38

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n; long long j=1; cin>>n; for(int i=1;i<=n;i++){ j*+=1; } cout<<n; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:11: error: expected primary-expression before '+=' token
         j*+=1;
           ^