Submission #412832

#TimeUsernameProblemLanguageResultExecution timeMemory
412832losmi247Paint 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,vector <int> c){ int k = c.size(); } int main(){ ios_base::sync_with_stdio(false); cin.tie(0); }

Compilation message (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