Submission #702480

#TimeUsernameProblemLanguageResultExecution timeMemory
702480jamezzzFootball (info1cup20_football)C++17
0 / 100
40 ms2132 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; } printf("%d",res!=0); } }

Compilation message (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...