Submission #531397

#TimeUsernameProblemLanguageResultExecution timeMemory
531397MODDITracks in the Snow (BOI13_tracks)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define ll long long #define pii pair<int,int> #define pll pair<ll,ll> #define vi vector<int> #define vl vector<ll> #define mp make_pair #define pb push_back using namespace std; int n, m; char mat[4001][4001]; int main(){ cin>>n>>m; bool f = false, r = false; for(int i = 0; i < n; i++){ for(int j =0 ; j < m; j++){ cin>>mat[i][j] if(mat[i][j] =='F') f = true; if(mat[i][j] == 'R') r = true; } } cout<<f + r<<endl; }

Compilation message (stderr)

tracks.cpp: In function 'int main()':
tracks.cpp:17:18: error: expected ';' before 'if'
   17 |    cin>>mat[i][j]
      |                  ^
      |                  ;
   18 |    if(mat[i][j] =='F')
      |    ~~