Submission #1359595

#TimeUsernameProblemLanguageResultExecution timeMemory
1359595FZ_LaabidiBikeparking (EGOI24_bikeparking)C++20
Compilation error
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])
}

Compilation message (stderr)

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