Submission #1071759

#TimeUsernameProblemLanguageResultExecution timeMemory
1071759raduvSplit (info1cup19_split)C++14
100 / 100
1 ms604 KiB
#include <bits/stdc++.h> using namespace std; int main() { int i; string s; cin >> s; for( i = 0; i < s.size(); i++ ){ if( i == s.size() / 2 ) cout << " "; cout << s[i]; } return 0; }

Compilation message (stderr)

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