Submission #464781

#TimeUsernameProblemLanguageResultExecution timeMemory
464781jurgisExam (eJOI20_exam)C++14
Compilation error
0 ms0 KiB
#include <iostream> #include <bits/stdc++.h> #define f first #define s second #define pii pair<int, int> #define ll long long using namespace std; int main() { int n; cin>>n; int A[n], B[n]; for(int i=0; i<n; i++){cin>>A[i];} for(int i=0; i<n; i++){cin>>B[i];} bool galim = true; for(int i=0; i<n; i++){if(A[i] != B[0]){galim = false}} if(galim){ cout<<n; } else{cout<<0;} }

Compilation message (stderr)

exam.cpp: In function 'int main()':
exam.cpp:14:58: error: expected ';' before '}' token
   14 |     for(int i=0; i<n; i++){if(A[i] != B[0]){galim = false}}
      |                                                          ^
      |                                                          ;