제출 #1120793

#제출 시각아이디문제언어결과실행 시간메모리
1120793vjudge1Tracks in the Snow (BOI13_tracks)C++17
컴파일 에러
0 ms0 KiB
// Telebe of adicto yani AzeTurk810 /* Author: AzeTurk810 Licance: open source(only authors name must be in code) Begin Time:11/20/2024 20:48 Problem link: https://codeforces.com/problemset/problem/1543/D1 */ #include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; bool check(std::string s) { std::string sc = s; reverse(sc.begin(),sc.end()); return sc == s; } signed main() { std::ios_base::sync_with_stdio(false);std::cin.tie(0);std::cout.tie(0); intint n, m; int n, m; cin >> n >> m; char a[n][m]; int x=0, y=0; for (int i=0; i < n; i++) { for (int j=0; j < m ;j++) { cin >> a[i][j]; if (a[i][j] =='F')x = 1; if (a[i][j] == 'R') y = 1; } } cout << x + y; } return 0; }

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

tracks.cpp: In function 'int main()':
tracks.cpp:24:5: error: 'intint' was not declared in this scope; did you mean 'int8_t'?
   24 |     intint n, m;
      |     ^~~~~~
      |     int8_t
tracks.cpp: At global scope:
tracks.cpp:40:1: error: expected unqualified-id before 'return'
   40 | return 0;
      | ^~~~~~
tracks.cpp:41:1: error: expected declaration before '}' token
   41 | }
      | ^