Submission #268587

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
2685872020-08-16 13:07:43A02Scales (IOI15_scales)C++14
Compilation error
0 ms0 KiB
#include "scales.h"
#include <vector>
#include <set>
#include <algorithm>
#include <utility>
using namespace std;
void init(int T) {
/* ... */
}
void orderCoins() {
/* ... */
int W[] = {1, 2, 3, 4, 5, 6};
int l1 = getLightest(1, 2, 3);
int l2 = getLightest(4, 5, 6);
int s = 1;
if (1 == l1){
s = 2;
}
int l = getLightest(l1, l2, s);
vector<int> remaining;
for (int i = 1; i <= 6; i++){
if (i != l){
remaining.push_back(i);
}
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

scales.cpp: In function 'void init(int)':
scales.cpp:9:15: warning: unused parameter 'T' [-Wunused-parameter]
    9 | void init(int T) {
      |           ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:37:31: error: 'class std::vector<int>' has no member named 'find'
   37 |     remaining.erase(remaining.find(l2));
      |                               ^~~~
scales.cpp:44:31: error: 'class std::vector<int>' has no member named 'find'
   44 |     remaining.erase(remaining.find(l4));
      |                               ^~~~
scales.cpp:52:31: error: 'class std::vector<int>' has no member named 'find'
   52 |     remaining.erase(remaining.find(W[3]));
      |                               ^~~~
scales.cpp:53:31: error: 'class std::vector<int>' has no member named 'find'
   53 |     remaining.erase(remaining.find(W[4]));
      |                               ^~~~