| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158837 | 王垚植 | 词组缩写 | C++ | Compile Error | 0 MS | 0 KB | 508 | 2026-08-22 17:51:21 |
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; cin.ignorea(); while (T--){ string s; getline(cin,s); string new_s; bool f=1; for (int i=0;i<s.size();i++){ if (s[i]==' '){ f=1; } else{ if (f){ new_s+=toupper(s[i]); f=0; } } } cout<<new_s<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:9: error: 'std::istream {aka class std::basic_istream}' has no member named 'ignorea'
cin.ignorea();
^
Main.cc:12:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i