Submission #901211

#TimeUsernameProblemLanguageResultExecution timeMemory
901211CodeussSplit (info1cup19_split)C++17
100 / 100
1 ms600 KiB
#include <bits/stdc++.h> using namespace std; int main(void){ string s; cin >> s; int siz = s.size() / 2; for(int i= 0;i<siz;i++)cout << s[i]; cout << ' '; for(int i = siz;i<s.size();i++)cout << s[i]; }

Compilation message (stderr)

split.cpp: In function 'int main()':
split.cpp:12:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for(int i = siz;i<s.size();i++)cout << s[i];
      |                     ~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...