제출 #894227

#제출 시각아이디문제언어결과실행 시간메모리
894227ozner77Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
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; } }

컴파일 시 표준 에러 (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;
      |         ~~~~