Borderou de evaluare (job #2651052)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 21 septembrie 2020 15:26:29
Problema Carnati Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:61:2: error: 'sort' is not a member of 'std' std::sort(act + 1, act + n + 1, [](DC A, DC B) { ^~~ main.cpp:72:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (act[j].c >= act[i].c) ^~ main.cpp:74:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' dp[1][i] = std::max(dp[1][i], s - (act[j].poz - act[i].poz) * job) ; ^~ main.cpp: In member function 'void InputReader<T>::advance() [with T = int]': main.cpp:23:4: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, SIZE, 1, input_file) ; ^~~~~ main.cpp: In constructor 'InputReader<T>::InputReader(const char*) [with T = int]': main.cpp:31:3: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread (buffer, SIZE, 1, input_file) ; ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?