Pagini recente » Borderou de evaluare (job #2348827) | Borderou de evaluare (job #3132971) | Borderou de evaluare (job #465828) | Borderou de evaluare (job #3211064) | Borderou de evaluare (job #178406)
Borderou de evaluare (job #178406)
Raport evaluator
Eroare de compilare:
user.cpp:11:16: error: ‘string’ was not declared in this scope
typedef vector<string> vs;
^
user.cpp:11:22: error: template argument 1 is invalid
typedef vector<string> vs;
^
user.cpp:11:22: error: template argument 2 is invalid
user.cpp:11:26: error: invalid type in declaration before ‘;’ token
typedef vector<string> vs;
^
user.cpp: In function ‘void dijkstra(int, int*)’:
user.cpp:43:37: error: ‘memset’ was not declared in this scope
memset(dist, 0x3f, sizeof(int)*N);
^
user.cpp: In function ‘void build_network(double)’:
user.cpp:74:27: error: ‘memset’ was not declared in this scope
memset(C, 0, sizeof(C));
^
user.cpp: In function ‘int bf()’:
user.cpp:131:36: error: ‘memset’ was not declared in this scope
memset(dist, 0x3f, sizeof(dist));
^
user.cpp:133:5: error: reference to ‘prev’ is ambiguous
prev[0] = -1;
^
user.cpp:37:17: note: candidates are: int prev [256]
int dist[NMAX], prev[NMAX];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp:147:17: error: reference to ‘prev’ is ambiguous
prev[next] = node;
^
user.cpp:37:17: note: candidates are: int prev [256]
int dist[NMAX], prev[NMAX];
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/vector:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
user.cpp: In function ‘int pomp()’:
user.cpp:161:12: error: reference to ‘prev’ is ambiguous
while (prev[x] != -1)
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 40ms | 1196kb | Incorect | 0 |
| 2 | 12ms | 1060kb | OK | 5 |
| 3 | 12ms | 1164kb | Incorect | 0 |
| 4 | 12ms | 1172kb | Incorect | 0 |
| 5 | 12ms | 1064kb | Incorect | 0 |
| 6 | 12ms | 1032kb | OK | 5 |
| 7 | 12ms | 1080kb | Incorect | 0 |
| 8 | 36ms | 1156kb | Incorect | 0 |
| 9 | 48ms | 1156kb | Incorect | 0 |
| 10 | 44ms | 1116kb | Incorect | 0 |
| 11 | 40ms | 1120kb | Incorect | 0 |
| 12 | 52ms | 1124kb | Incorect | 0 |
| 13 | 12ms | 1056kb | Incorect | 0 |
| 14 | 32ms | 1176kb | Incorect | 0 |
| 15 | 48ms | 1192kb | Incorect | 0 |
| 16 | 16ms | 1096kb | Incorect | 0 |
| 17 | 24ms | 1180kb | OK | 5 |
| 18 | 28ms | 1172kb | Incorect | 0 |
| 19 | 12ms | 1160kb | Incorect | 0 |
| 20 | 12ms | 1172kb | Incorect | 0 |
| Punctaj total | 0 |