제출 #282518

#제출 시각아이디문제언어결과실행 시간메모리
282518doowey전선 연결 (IOI17_wiring)C++14
0 / 100
1 ms404 KiB
#include <bits/stdc++.h> #include "wiring.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; #define fi first #define se second #define mp make_pair ll min_total_length(vector<int> r, vector<int> b) { ll res = 0; for(int i = 0 ; i < b.size(); i ++ ) res += b[i] - r.back(); for(int i = 0; i + 1 < r.size(); i ++ ) res += b[0] - r[i]; return res; }

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

wiring.cpp: In function 'll min_total_length(std::vector<int>, std::vector<int>)':
wiring.cpp:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |     for(int i = 0 ; i < b.size(); i ++ )
      |                     ~~^~~~~~~~~~
wiring.cpp:17:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |     for(int i = 0; i + 1 < r.size(); i ++ )
      |                    ~~~~~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...