Borderou de evaluare (job #2231712)

Utilizator gavrisraulRaul Gavris gavrisraul Data 15 august 2018 17:48:04
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:23:3: error: ‘fin’ was not declared in this scope fin.getline(A,maxn); ^~~ user.cpp:27:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i=M;i;--i)A[i]=A[i-1];A[0]=' '; ^~~ user.cpp:27:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(i=M;i;--i)A[i]=A[i-1];A[0]=' '; ^ user.cpp:28:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i=N;i;--i)B[i]=B[i-1];B[0]=' '; ^~~ user.cpp:28:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(i=N;i;--i)B[i]=B[i-1];B[0]=' '; ^ user.cpp:42:3: error: ‘fout’ was not declared in this scope fout<<n<<'\n' ^~~~ user.cpp:43:24: error: ‘min’ was not declared in this scope for(i=1;i<=min(n,1000);++i) ^ user.cpp:43:24: note: suggested alternative: In file included from /usr/include/c++/6/bits/char_traits.h:39:0, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from user.cpp:1: /usr/include/c++/6/bits/stl_algobase.h:243:5: note: ‘std::min’ min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^~~ user.cpp:43:29: error: expected ‘;’ before ‘)’ token for(i=1;i<=min(n,1000);++i) ^ user.cpp:45:3: error: ‘cout’ was not declared in this scope cout<<'\n'; ^~~~ user.cpp:45:3: note: suggested alternative: In file included from user.cpp:1:0: /usr/include/c++/6/iostream:61:18: note: ‘std::cout’ extern ostream cout; /// Linked to standard output ^~~~

Ceva nu functioneaza?