Submission #412829

#TimeUsernameProblemLanguageResultExecution timeMemory
412829losmi247Paint By Numbers (IOI16_paint)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 2e5+45; const int K = 105; string solve_puzzle(string s,int *c){ int k = c.size(); }

Compilation message (stderr)

paint.cpp: In function 'std::string solve_puzzle(std::string, int*)':
paint.cpp:11:15: error: request for member 'size' in 'c', which is of non-class type 'int*'
   11 |     int k = c.size();
      |               ^~~~
paint.cpp:11:9: warning: unused variable 'k' [-Wunused-variable]
   11 |     int k = c.size();
      |         ^
paint.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^