제출 #872912

#제출 시각아이디문제언어결과실행 시간메모리
872912vjudge1Best Place (NOI17_bestplace)C++17
0 / 100
52 ms348 KiB
#include <iostream> using namespace std; 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; }

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

bestplace.cpp: In function 'int main()':
bestplace.cpp:17:20: warning: 'xsum' may be used uninitialized in this function [-Wmaybe-uninitialized]
   17 |  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...