Borderou de evaluare (job #2231714)
Utilizator | Data | 15 august 2018 17:49:01 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: ‘ifstream’ does not name a type
ifstream fin("strmatch.in");
^~~~~~~~
user.cpp:6:1: error: ‘ofstream’ does not name a type
ofstream fout("strmatch.out");
^~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:26:3: error: ‘fin’ was not declared in this scope
fin.getline(A,maxn);
^~~
user.cpp:30:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=M;i;--i)A[i]=A[i-1];A[0]=' ';
^~~
user.cpp:30: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:31:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=N;i;--i)B[i]=B[i-1];B[0]=' ';
^~~
user.cpp:31: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:45:3: error: ‘fout’ was not declared in this scope
fout<<n<<'\n'
^~~~
user.cpp:46:24: error: ‘min’ was not declared in this scope
for(i=1;i<=min(n,1000);++i)
^
user.cpp:46: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:46:29: error: expected ‘;’ before ‘)’ token
for(i=1;i<=min(n,1000);++i)
^
user.cpp:48:3: error: ‘cout’ was not declared in this scope
cout<<'\n';
^~~~
user.cpp:48: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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !