Submission #1086233

#TimeUsernameProblemLanguageResultExecution timeMemory
1086233Noname_1900Split (info1cup19_split)C++17
100 / 100
1 ms348 KiB
#include <bits/stdc++.h>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    string nb;
    cin >> nb;
    for(int i = 0; i < (nb.length())/2; i++)    cout << nb[i];
    cout << " ";
    for(int i = (nb.length()/2); i < (nb.length()); i++)    cout << nb[i];
}

Compilation message (stderr)

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