Submission #1047100

#TimeUsernameProblemLanguageResultExecution timeMemory
1047100LibSeats (IOI18_seats)C++14
Compilation error
0 ms0 KiB
#include "seats.h" #include<bits/stdc++.h> //copy template from bachbeo2007 using namespace std; void give_initial_chart(int N, int M, std::vector<int> Rows, std::vector<int> Cols) { } int swap_seats(int a, int b) { int x=p[a],y=p[b]; swap(p[a],p[b]); }

Compilation message (stderr)

seats.cpp: In function 'int swap_seats(int, int)':
seats.cpp:10:11: error: 'p' was not declared in this scope
   10 |     int x=p[a],y=p[b];
      |           ^
seats.cpp:10:9: warning: unused variable 'x' [-Wunused-variable]
   10 |     int x=p[a],y=p[b];
      |         ^
seats.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^