Submission #448025

#TimeUsernameProblemLanguageResultExecution timeMemory
448025bigoAwesome Arrowland Adventure (eJOI19_adventure)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include <cmath> using namespace std; typedef unsigned long long ll int main() { int n, m; cin >> n >> m; vector<char>vec(m); for (int i = 0; i < m; i++) { cin >> vec[i]; } bool flag = true; for (int i = 0; i < m - 1; i++) { if (vec[i] == 'X') { cout << -1; flag = false; } } if (flag) cout << 0; }

Compilation message (stderr)

adventure.cpp:5:1: error: expected initializer before 'int'
    5 | int main() {
      | ^~~