Submission #1222000

#TimeUsernameProblemLanguageResultExecution timeMemory
1222000hyakup상형문자열 (IOI24_hieroglyphs)C++20
Compilation error
0 ms0 KiB
#include "hieroglyphs.h" #include <bits/stdc++.h> using namespace std; vector<int> ucs(vector<int> a, vector<int> b) { int n = a.size(), m = b.size(); for( int i = 0; i < n; i++ ) if( a[i] != b[i] ) return false; return true; }

Compilation message (stderr)

hieroglyphs.cpp: In function 'std::vector<int> ucs(std::vector<int>, std::vector<int>)':
hieroglyphs.cpp:7:58: error: could not convert 'false' from 'bool' to 'std::vector<int>'
    7 |   for( int i = 0; i < n; i++ ) if( a[i] != b[i] ) return false;
      |                                                          ^~~~~
      |                                                          |
      |                                                          bool
hieroglyphs.cpp:8:10: error: could not convert 'true' from 'bool' to 'std::vector<int>'
    8 |   return true;
      |          ^~~~
      |          |
      |          bool