제출 #702477

#제출 시각아이디문제언어결과실행 시간메모리
702477jamezzzFootball (info1cup20_football)C++17
0 / 100
36 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); 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:10:15: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |    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...