| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129558 | 黄俊然 | 15加到第几项 | C++ | Compile Error | 0 MS | 0 KB | 382 | 2025-08-28 19:59:03 |
#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 n,s=0,num=0,i=1; while(s<1000){ s+=i; i++; num++; } cout<<sum; return 0; }
Main.cc: In function 'int main()':
Main.cc:14:11: error: 'sum' was not declared in this scope
cout<