제출 #412832

#제출 시각아이디문제언어결과실행 시간메모리
412832losmi247Paint 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,vector <int> c){ int k = c.size(); } int main(){ ios_base::sync_with_stdio(false); cin.tie(0); }

컴파일 시 표준 에러 (stderr) 메시지

paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
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 | }
      | ^
/usr/bin/ld: /tmp/ccT7TLea.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccjewlJb.o:paint.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status