Submission #203750

#TimeUsernameProblemLanguageResultExecution timeMemory
203750aloo123Split (info1cup19_split)C++14
100 / 100
5 ms504 KiB
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int n = (int)s.size();n/=2; for(int i = 0;i<n;i++)cout<<s[i];cout<<" "; for(int i = n;i<n*2;i++) cout<<s[i];cout<<endl; return 0; }

Compilation message (stderr)

split.cpp: In function 'int main()':
split.cpp:9:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i = 0;i<n;i++)cout<<s[i];cout<<" ";
   ^~~
split.cpp:9:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   for(int i = 0;i<n;i++)cout<<s[i];cout<<" ";
                                    ^~~~
split.cpp:10:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i = n;i<n*2;i++) cout<<s[i];cout<<endl;
   ^~~
split.cpp:10:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   for(int i = n;i<n*2;i++) cout<<s[i];cout<<endl;
                                       ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...