Submission #680180

#TimeUsernameProblemLanguageResultExecution timeMemory
680180BeveritaSplit (info1cup19_split)C++17
100 / 100
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; //ifstream in("trampoline.in"); //ofstream out("trampoline.out"); string s; int main() { cin>>s; for(int i=0;i<s.size()/2;i++){ cout<<s[i]; } cout<<' '; for(int i=s.size()/2;i<s.size();i++){ cout<<s[i]; } return 0; }

Compilation message (stderr)

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