제출 #475217

#제출 시각아이디문제언어결과실행 시간메모리
475217bigoFootball (info1cup20_football)C++14
26 / 100
103 ms2532 KiB
#include <iostream> #include <vector> #include <cmath> #include <set> using namespace std; #define pii pair<int, int> vector<vector<int>>vec; vector<bool>visit; int main() { int t; cin >> t; vector<int>ans; while (t--) { int n, k; cin >> n >> k; vector<int>vec(n); long long sum = 0; for (int i = 0; i < n; i++) { cin >> vec[i]; sum += vec[i]; } ans.push_back(sum % 2); } for (int i = 0; i < ans.size(); i++) cout << ans[i]; }

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

football.cpp: In function 'int main()':
football.cpp:24:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |  for (int i = 0; i < ans.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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...