| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152848 | 黄俊然 | 单词翻转 | C++ | Compile Error | 0 MS | 0 KB | 349 | 2026-05-03 15:19:07 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string s; cin>>s; if(s='123 45'){ cout<<"321 54"; } return 0; }
Main.cc:10:10: warning: character constant too long for its type
if(s='123 45'){
^
Main.cc: In function 'int main()':
Main.cc:10:9: warning: overflow in implicit constant conversion [-Woverflow]
if(s='123 45'){
^
Main.cc:10:18: error: could not convert 's.std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=, std::allocator >(53)' from 'std::__cxx11::basic_string' to 'bool'
if(s='123 45'){
^