Submission #1101734

# Submission time Handle Problem Language Result Execution time Memory
1101734 2024-10-16T17:48:15 Z rayan_bd Utrka (COCI14_utrka) C++17
Compilation error
0 ms 0 KB
#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

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