답안 #991464

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
991464 2024-06-02T09:38:13 Z sleepntsheep 9월 (APIO24_september) C++17
컴파일 오류
0 ms 0 KB
    for (i = 0; i < M; ++i)
        for (j = 1; j < N; ++j)
            ta.update(tin[j], i, pos[i][j]);
 

Compilation message

september.cpp:1:5: error: expected unqualified-id before 'for'
    1 |     for (i = 0; i < M; ++i)
      |     ^~~
september.cpp:1:17: error: 'i' does not name a type
    1 |     for (i = 0; i < M; ++i)
      |                 ^
september.cpp:1:24: error: expected unqualified-id before '++' token
    1 |     for (i = 0; i < M; ++i)
      |                        ^~
september.cpp:2:21: error: 'j' does not name a type
    2 |         for (j = 1; j < N; ++j)
      |                     ^
september.cpp:2:28: error: expected unqualified-id before '++' token
    2 |         for (j = 1; j < N; ++j)
      |                            ^~