QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#83335 | #4413. Cyber Language | bosun# | Compile Error | / | / | C++17 | 270b | 2023-03-01 14:17:29 | 2023-03-01 14:17:31 |
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:31]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-03-01 14:17:29]
- 提交
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;
}
Details
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