Submission #989831

#TimeUsernameProblemLanguageResultExecution timeMemory
989831aaaaaarrozMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; char faceup(int c); void play() { map<char,vector<int>>valores; for(int i=1;i<=49;i++){ char a=faceup(i); char b=faceup(i+1); if(a==b){ continue; } else{ valores[a].push_back(i); valores[b].push_back(i+1); } } for(vector<int>cartas:valores){ faceup(cartas[0]); faceup(cartas[1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:19:27: error: conversion from 'std::pair<const char, std::vector<int> >' to non-scalar type 'std::vector<int>' requested
   19 |     for(vector<int>cartas:valores){
      |                           ^~~~~~~