제출 #702489

#제출 시각아이디문제언어결과실행 시간메모리
702489jamezzzFootball (info1cup20_football)C++17
100 / 100
44 ms2028 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int tc;scanf("%d",&tc); while(tc--){ int n,k;scanf("%d%d",&n,&k); k=1<<(32-__builtin_clz(k)); int res=0; for(int i=0;i<n;++i){ int a;scanf("%d",&a); res^=a%k; } printf("%d",res!=0); } }

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

football.cpp: In function 'int main()':
football.cpp:5:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    5 |  int tc;scanf("%d",&tc);
      |         ~~~~~^~~~~~~~~~
football.cpp:7:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |   int n,k;scanf("%d%d",&n,&k);
      |           ~~~~~^~~~~~~~~~~~~~
football.cpp:11:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   11 |    int a;scanf("%d",&a);
      |          ~~~~~^~~~~~~~~
#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...