제출 #1359595

#제출 시각아이디문제언어결과실행 시간메모리
1359595FZ_LaabidiBikeparking (EGOI24_bikeparking)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
signed main(){
    int n; cin >> n;
    vector<int> x(n), y(n);
    for(int i=0; i<n; i++)cin >> x[i];
    for(int i=0; i<n; i++)cin >> y[i];
     cout << abs(y[0]-x[0])
}

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp: In function 'int main()':
Main.cpp:8:28: error: expected ';' before '}' token
    8 |      cout << abs(y[0]-x[0])
      |                            ^
      |                            ;
    9 | }
      | ~