Submission #249432

#TimeUsernameProblemLanguageResultExecution timeMemory
249432dantoh000Meetings (JOI19_meetings)C++14
Compilation error
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); } } } }

Compilation message (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