Submission #872906

#TimeUsernameProblemLanguageResultExecution timeMemory
872906vjudge1Best Place (NOI17_bestplace)C++11
0 / 100
55 ms404 KiB
//hi //info t4 wk 6 //contest //task 1 Best Place #include <iostream> using namespace std; //wow i havent coded in a long time int main() { int N; cin >> N; int x, y, xsum, ysum = 0; for (int i = 0; i < N; i++) { cin >> x; xsum += x; cin >> y; ysum += y; } cout << xsum/N << " " << ysum/N; }

Compilation message (stderr)

bestplace.cpp: In function 'int main()':
bestplace.cpp:24:20: warning: 'xsum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   24 |  cout << xsum/N << " " << ysum/N;
      |                    ^~~
#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...