Submission #1101734

#TimeUsernameProblemLanguageResultExecution timeMemory
1101734rayan_bdUtrka (COCI14_utrka)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n;cin>>n; unordered_map<string,int> mp; string str; for(int i=0;i<n;++i){ cin>>str; ++mp[str]; } for(auto it:mp){ if(it.second==1){ cout<<it.first; return; } } }

Compilation message (stderr)

utrka.cpp: In function 'int main()':
utrka.cpp:14:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |       return;
      |       ^~~~~~