Borderou de evaluare (job #2031746)
Utilizator | Data | 3 octombrie 2017 19:18:14 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:1:19: warning: extra tokens at end of #include directive [enabled by default]
#include<iostream>;
^
user.cpp:2:18: warning: extra tokens at end of #include directive [enabled by default]
#include<fstream>;
^
user.cpp:3:20: warning: extra tokens at end of #include directive [enabled by default]
#include<algorithm>;
^
user.cpp: In function ‘int main()’:
user.cpp:24:6: error: reference to ‘function’ is ambiguous
t = function(1, 1, a, b, m, n, 1);
^
user.cpp:5:5: note: candidates are: int function(int, int, int*, int*, int, int, int)
int function(int i, int j, int a[], int b[], int m, int n, int index);
^
In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:3:
/usr/include/c++/4.8/functional:1866:11: note: template<class _Signature> class std::function
class function;
^
user.cpp: In function ‘int function(int, int, int*, int*, int, int, int)’:
user.cpp:44:10: error: reference to ‘function’ is ambiguous
return function(i + 1, j + 1, a, b, m, n, index+1) + 1;
^
user.cpp:34:5: note: candidates are: int function(int, int, int*, int*, int, int, int)
int function(int i, int j, int a[], int b[], int m, int n, int index)
^
In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:3:
/usr/include/c++/4.8/functional:1866:11: note: template<class _Signature> class std::function
class function;
^
user.cpp:49:14: error: reference to ‘function’ is ambiguous
return max(function(i + 1, j, a, b, m, n, index), function(i, j + 1, a, b, m, n, index));
^
user.cpp:34:5: note: candidates are: int function(int, int, int*, int*, int, int, int)
int function(int i, int j, int a[], int b[], int m, int n, int index)
^
In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:3:
/usr/include/c++/4.8/functional:1866:11: note: template<class _Signature> class std::function
class function;
^
user.cpp:49:53: error: reference to ‘function’ is ambiguous
return max(function(i + 1, j, a, b, m, n, index), function(i, j + 1, a, b, m, n, index));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !