Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81133 杜奕辰 19选班长II C++ Compile Error 0 MS 0 KB 510 2024-07-12 10:28:56

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int arr[4]; int main(){ int i=0,j=0,n=0,A=0,B=0,C=0; int arr[10001]={0}; while(1) { cin >> arr[i]; if(arr[i]==-1) break; i++; n++; } cout<<"A="<<a[1]<<endl; cout<<"B="<<a[2]<<endl; cout<<"C="<<a[3]<<endl; cout<<"Tot="<<sum<<endl; if(a[1]>sum/2){ cout<<"A-yes"<<endl; }else if(a[2]>sum/2){ cout<<"B-yes"<<endl; }else if(a[3]>sum/2){ cout<<"C-yes"<<endl; }else{ cout<<"all-No"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:14: error: 'a' was not declared in this scope
  cout<<"A="<