제출 #1043570

#제출 시각아이디문제언어결과실행 시간메모리
1043570deera게임 (IOI14_game)C++14
100 / 100
880 ms71372 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; vector<set<int>> asked; void initialize(int n) { vector<set<int>> v(n, set<int>()); asked = v; } int hasEdge(int u, int v) { if (u > v) swap(u, v); asked[v].insert(u); return asked[v].size() == v; }

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

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:16:28: warning: comparison of integer expressions of different signedness: 'std::set<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   16 |     return asked[v].size() == v;
      |            ~~~~~~~~~~~~~~~~^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...