QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#83334 | #4413. Cyber Language | bosun# | Compile Error | / | / | C++14 | 270b | 2023-03-01 14:17:02 | 2023-03-01 14:17:05 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-03-01 14:17:05]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-03-01 14:17:02]
- 提交
answer
#include<bits/stdc++.h>
using namespace std;
int t;
char s[101];
int main(){
cin>>t;char c=getchar();
while(t--){
gets(s);
for(int i=0;i<strlen(s);i++){
if(i==0||s[i-1]==' '){
printf("%c",s[i]-'a'+'A');
}
}
puts("");
}
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:8:17: error: ‘gets’ was not declared in this scope; did you mean ‘getw’? 8 | gets(s); | ^~~~ | getw