Borderou de evaluare (job #3206633)

Utilizator alexandraiacobelAlexandra Iacob alexandraiacobel Data 23 februarie 2024 18:32:30
Problema Poly Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:20: warning: extra tokens at end of #include directive 1 | #include <fstream> using namespace std; | ^~~~~ main.cpp: In function 'int main()': main.cpp:12:4: error: 'fin' was not declared in this scope 12 | fin>>n; | ^~~ main.cpp:16:17: error: 'M' was not declared in this scope 16 | if (a % M[j] == 0) | ^ main.cpp:29:27: error: 'max' was not declared in this scope; did you mean 'std::max'? 29 | D[ v[i] ] = max (D[ v[i] ], D[j] + 1); //aveam deja un subsir de 3 care se termina cu cod104, | ^~~ | std::max In file included from /usr/include/c++/12.2.1/string:50, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/istream:38, from /usr/include/c++/12.2.1/fstream:38, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_algobase.h:300:5: note: 'std::max' declared here 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ main.cpp:36:6: error: expected '}' at end of input 36 | } | ^ main.cpp:11:3: note: to match this '{' 11 | { | ^ Non zero exit status: 1

Ceva nu functioneaza?