제출 #388693

#제출 시각아이디문제언어결과실행 시간메모리
388693victoriadFootball (info1cup20_football)C++14
0 / 100
1 ms204 KiB
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <utility>
#include <queue>
#include <map>
#include <iomanip>
#include <stack>
#include <fstream>
using namespace std;

  
 
int main(){
  ios::sync_with_stdio(false);
   cin.tie(NULL);
    int n,k,t;
    while(t--){
      cin>>n>>k;
      vector<int>c(n);
      int x=0;
      for(int i=0;i<n;i++){
        cin>>c[i];
        x+=c[i];
      }
      if(x%2==1){
        cout<<1;
      }
      else if(k==1||n==1){
        cout<<0;
      }
      
      
    }
  
  return 0;
}

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

football.cpp: In function 'int main()':
football.cpp:20:12: warning: 't' is used uninitialized in this function [-Wuninitialized]
   20 |     while(t--){
      |            ^~
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…