Submission #87798

#TimeUsernameProblemLanguageResultExecution timeMemory
87798asifthegreatUtrka (COCI14_utrka)C++14
80 / 80
525 ms25744 KiB
#include <bits/stdc++.h> using namespace std; map<string,int>mp; set<string>st; int main() { int n; scanf("%d",&n); string s; for(int i = 1; i <= n;i++){ cin >> s; mp[s]++; st.insert(s); } for(int i = 1; i < n;i++){ cin >> s; mp[s]--; } for(auto x:st){ if(mp[x]){ printf("%s\n",x.c_str()); return 0; } } return 0; }

Compilation message (stderr)

utrka.cpp: In function 'int main()':
utrka.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...