| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84536 | 赵文浚 | 19选班长II | C++ | Compile Error | 0 MS | 0 KB | 360 | 2024-07-16 09:55:09 |
#include<bits/stdc++.h> using namespace std; int a[100]; int main() { int x=0,y=0,z=0,n=0,t; while(ture) { cin>>t; if(t==-1) { break; } n++; if(t==1) { x++; } else if(t==2) { y++; } else (t==3) { z++; } } cout<<"A="<<x<<endl; cout<<"B="<<y<<endl; cout<<"C="<<z<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:8: error: 'ture' was not declared in this scope
while(ture)
^
Main.cc:24:3: error: expected ';' before '{' token
{
^