QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#132762 | #5436. DRX vs. T1 | yzhang | Compile Error | / | / | C++14 | 859b | 2023-07-31 14:58:23 | 2023-07-31 14:58:25 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-07-31 14:58:25]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-07-31 14:58:23]
- 提交
answer
//μ's forever
#include <bits/stdc++.h>
//#define getchar nc
using namespace std;
inline char nc(){
static char buf[100000],*p1=buf,*p2=buf;
return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++;
}
inline int read()
{
register int x=0,f=1;register char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return x*f;
}
inline void write(register int x)
{
if(!x)putchar('0');if(x<0)x=-x,putchar('-');
static int sta[20];register int tot=0;
while(x)sta[tot++]=x%10,x/=10;
while(tot)putchar(sta[--tot]+48);
}
char s[10];
int main()
{
scanf("%s",s+1);
int cnt=0;
for(int i=1;i<=n;++i){
if(s[i]=='T') ++cnt;
}
if(cnt==3) puts("T1");
else puts("DRX");
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:28:20: error: ‘n’ was not declared in this scope 28 | for(int i=1;i<=n;++i){ | ^ answer.code:26:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 26 | scanf("%s",s+1); | ~~~~~^~~~~~~~~~