제출 #412830

#제출 시각아이디문제언어결과실행 시간메모리
412830losmi247Paint By Numbers (IOI16_paint)C++14
컴파일 에러
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(); }

컴파일 시 표준 에러 (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 | }
      | ^