Submission #509771

#TimeUsernameProblemLanguageResultExecution timeMemory
509771SalamaSplit (info1cup19_split)C++17
100 / 100
1 ms296 KiB
#include <bits/stdc++.h> using namespace std; int main () { string d; cin >>d; for(long long o=0;o<d.size()/2;o++) { cout <<d[o];} cout <<" "; for(long long o=d.size()/2;o<d.size();o++)cout <<d[o]; return 0; }

Compilation message (stderr)

split.cpp: In function 'int main()':
split.cpp:5:41: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    5 |   string d; cin >>d; for(long long o=0;o<d.size()/2;o++) { cout <<d[o];}
      |                                        ~^~~~~~~~~~~
split.cpp:6:43: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    6 |   cout <<" "; for(long long o=d.size()/2;o<d.size();o++)cout <<d[o];
      |                                          ~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...