Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72591 祝家懿 数列求和 C++ Compile Error 0 MS 0 KB 173 2024-05-11 20:46:02

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m; int a; cin>>n; a=1; for(int i=1;i<=n;i++){ m=m+a; a=a*2; } cout<<m; return 0; } }


Run Info:

Main.cc:14:3: error: expected declaration before '}' token
 } } 
   ^