Submission #1031844

# Submission time Handle Problem Language Result Execution time Memory
1031844 2024-07-23T08:00:11 Z Mr_Husanboy Catfish Farm (IOI22_fish) C++17
Compilation error
0 ms 0 KB
#include "fish.h"
#include <bits/stdc++.h>

using namespace std;


long long max_weights(int n, int m, std::vector<int> x, std::vector<int> y,
                      std::vector<int> w) {
    return accumulate(all(w), 0);
}

Compilation message

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:9:23: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
    9 |     return accumulate(all(w), 0);
      |                       ^~~
      |                       std::filesystem::perms::all
In file included from /usr/include/c++/10/filesystem:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
                 from fish.cpp:2:
/usr/include/c++/10/bits/fs_fwd.h:148:7: note: 'std::filesystem::perms::all' declared here
  148 |       all  =  0777,
      |       ^~~