제출 #249432

#제출 시각아이디문제언어결과실행 시간메모리
249432dantoh000Meetings (JOI19_meetings)C++14
컴파일 에러
0 ms0 KiB
#include "meetings.h"

void Solve(int N) {

    for (int i = 0; i < N; i++) {
        for (int j = i+1;s j < N; j++){
            bool can = 1;
            for (int k = 0; k < N; k++){
                if (i == k || j == k) continue;
                int Q = Query(i,j,k);
                if (Q != i && Q != j){
                    can = 0;
                    break;
                }
            }
            if (can){
                Bridge(i,j);
            }
        }
    }
}

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

meetings.cpp: In function 'void Solve(int)':
meetings.cpp:6:26: error: 's' was not declared in this scope
         for (int j = i+1;s j < N; j++){
                          ^
meetings.cpp:6:28: error: expected ';' before 'j'
         for (int j = i+1;s j < N; j++){
                            ^
meetings.cpp:6:30: warning: for increment expression has no effect [-Wunused-value]
         for (int j = i+1;s j < N; j++){
                            ~~^~~
meetings.cpp:6:33: error: expected ')' before ';' token
         for (int j = i+1;s j < N; j++){
                                 ^
meetings.cpp:6:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for (int j = i+1;s j < N; j++){
         ^~~
meetings.cpp:6:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
         for (int j = i+1;s j < N; j++){
                                   ^
meetings.cpp:6:35: error: 'j' was not declared in this scope