제출 #1195005

#제출 시각아이디문제언어결과실행 시간메모리
1195005badge881Team Coding (EGOI24_teamcoding)C++20
12 / 100
41 ms4168 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, k; scanf("%lld %lld", &n, &k); map<ll, ll> mp; ll ans = 0; for (int i = 0; i < n; i++) { ll x; scanf("%lld", &x); mp[x]++; ans = max(ans, mp[x]); } printf("%lld 0\n", ans); }

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

Main.cpp: In function 'int main()':
Main.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    8 |     scanf("%lld %lld", &n, &k);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~
Main.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   14 |         scanf("%lld", &x);
      |         ~~~~~^~~~~~~~~~~~
#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...