제출 #989951

#제출 시각아이디문제언어결과실행 시간메모리
989951the_coding_poohCluedo (IOI10_cluedo)C++14
100 / 100
7 ms344 KiB
#include <bits/stdc++.h>
#include "cluedo.h"
#include "grader.h"
#define uwu return 0;

using namespace std;

void Solve(){
    queue <int> q[4];
    for (int i = 1; i <= 6; i++){
        q[1].push(i);
    }
    for (int i = 1; i <= 10; i++){
        q[2].push(i);
    }
    for (int i = 1; i <= 6; i++){
        q[3].push(i);
    }
    int ret;
    while (ret = Theory(q[1].front(), q[2].front(), q[3].front())){
        q[ret].pop();
    }
    return;
}

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

cluedo.cpp: In function 'void Solve()':
cluedo.cpp:20:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   20 |     while (ret = Theory(q[1].front(), q[2].front(), q[3].front())){
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...