Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131302 胥博雯 18高度为k的树 C++ Compile Error 0 MS 0 KB 493 2025-09-21 17:27:57

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 s[1000005]; int main(){ int n,k,sum=0; cin>>n; for(int i=0;i<n;i++){ cin>>s[i]; cin>>k; } for(int i=0;i<n;i++){ if(s[i]>c){ sum++; } } cout<<sum<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:17: error: 'c' was not declared in this scope
         if(s[i]>c){
                 ^