| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84519 | 游四鑫 | 19选班长II | C++ | Compile Error | 0 MS | 0 KB | 437 | 2024-07-16 09:49:09 |
#include<iostream> using namespace std; int main() int a; { int n,x,y,z,max=0; cin>>n; while(a!=-1){ i++; cin>>a; if(a==1)x++; if(a==2)y++; if(a==3)z++; ; } printf("A=%d\n",A); printf("B=%d\n",B); printf("C=%d\n",C); printf("Tot=%d\n",i); if(A>Tot/2.0) printf("A-yes\n"); else if(B>Tot/2.0) printf("B-yes\n"); else if(C>Tot/2.0) printf("C-yes\n"); else printf("all-NO\n"); return 0; }
Main.cc:4:1: error: expected initializer before 'int'
int a;
^
Main.cc:5:1: error: expected unqualified-id before '{' token
{
^