Submission #209573

#TimeUsernameProblemLanguageResultExecution timeMemory
209573DodgeBallManUtrka (COCI14_utrka)C++14
80 / 80
352 ms18296 KiB
#include <bits/stdc++.h> using namespace std; map<string,int> mp, mp2; int n; int main() { scanf("%d",&n); for( int i = 1 ; i <= n ; i++ ) { string s; cin >> s; mp[s]++; } for( int i = 1 ; i < n ; i++ ) { string s; cin >> s; mp2[s]++; } for( auto m : mp ) { if( mp2[m.first] != m.second ) { cout << m.first; 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...