sandbox

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <map> using namespace std; int main() { map <int, int> arr; int v[] = {10, 5, 3, 4, 3, 5, 6}; for(int i=0; i<7;i++) { if(arr.find(v[i]) == arr.end()) arr.insert({v[i], i}); else cout << "Index is" << i << endl; } cout << "Hello World!"; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines