제출 #872906

#제출 시각아이디문제언어결과실행 시간메모리
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; }

컴파일 시 표준 에러 (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...