#include <bits/stdc++.h>
using namespace std;
long long b[323567],c[323456],a[323456],tt;
long long s,x,xx,m,y,r,n,t,k,l,aa,bb,cc,dd;
long long i, j, z;
vector <long long>w[223456],ww;
string q,p,qq;
int count_swaps( vector < int > vc ){
n = vc.size();
if (n == 1){
if (vc[0]<0)
s=0;
else s=1;
return s;
}
}
Compilation message
shoes.cpp: In function 'int count_swaps(std::vector<int>)':
shoes.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
18 | }
| ^
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
5504 KB |
Output is correct |
2 |
Correct |
4 ms |
5504 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
5504 KB |
Output is correct |
2 |
Correct |
4 ms |
5504 KB |
Output is correct |
3 |
Incorrect |
4 ms |
5632 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
5504 KB |
Output is correct |
2 |
Correct |
4 ms |
5504 KB |
Output is correct |
3 |
Incorrect |
4 ms |
5620 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
5504 KB |
Output is correct |
2 |
Incorrect |
4 ms |
5556 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
5504 KB |
Output is correct |
2 |
Correct |
4 ms |
5504 KB |
Output is correct |
3 |
Incorrect |
4 ms |
5632 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
5504 KB |
Output is correct |
2 |
Correct |
4 ms |
5504 KB |
Output is correct |
3 |
Incorrect |
4 ms |
5632 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |