Submission #894227

#TimeUsernameProblemLanguageResultExecution timeMemory
894227ozner77Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include "shoes.h" #include <bits/stdc++.h> using namespace std; long long count_swaps(std::vector<int> s) { return 1; int a,b,count_swaps; vector<int> V; cin>>a; for(int i=0;i<a;i++){ cin>>b; V.push_back(b); } if(V[0]<0){ count_swaps=0; cout<<0; }else{ count_swaps=1 cout<<1; } }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:17:19: error: expected ';' before 'cout'
   17 |      count_swaps=1
      |                   ^
      |                   ;
   18 |         cout<<1;
      |         ~~~~