Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101246 罗迎甲 18陶陶摘苹果 C++ Compile Error 0 MS 0 KB 448 2024-12-14 17:04:56

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,q=0; int a[10]; for(int z=0;z<n;z++){ cin>>a[z]; }cin>>m; for(int z=0;z<n;z++){ if(a[z]<=m+30) q+=1;} cout<<q; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:19: error: 'n' was not declared in this scope
     for(int z=0;z