| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150997 | 杨峻熙 | 奇偶位互换 | C++ | Compile Error | 0 MS | 0 KB | 243 | 2026-04-02 17:26:24 |
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; cin.ignore(); while(T--){ string s; cin>>s; for(int i=0;i<s.size();i+=z){ ans+=s[i+1]; ans+=s[i]; } cout<<ans<<endl; } return 0; }
Main.cc: In function 'int main()': Main.cc:10:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i