QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#93901 | #4413. Cyber Language | Tobo# | Compile Error | / | / | C++11 | 565b | 2023-04-03 19:39:22 | 2023-04-03 19:39:24 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-04-03 19:39:24]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-04-03 19:39:22]
- 提交
answer
#include <bits/stdc++.h>
#define N 200005
using i64 = long long;
using namespace std;
void solve(){
cin >> t;
getchar();
while(t --){
getline(cin,st);
string ans;
for(int i= 0; i < st.size(); i++){
if(i == 0) ans += char(st[i] -'a' + 'A');
else if(st[i - 1] ==' ') ans += char(st[i] -'a' + 'A');
}
cout <<ans << endl;
st.clear();
}
}
signed main()
{
// ios::sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
solve();
return 0;
}
Details
answer.code: In function ‘void solve()’: answer.code:6:12: error: ‘t’ was not declared in this scope; did you mean ‘tm’? 6 | cin >> t; | ^ | tm answer.code:9:21: error: ‘st’ was not declared in this scope; did you mean ‘std’? 9 | getline(cin,st); | ^~ | std