QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#83334#4413. Cyber Languagebosun#Compile Error//C++14270b2023-03-01 14:17:022023-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]
  • 评测
  • [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