Pagini recente » Borderou de evaluare (job #2940323) | Borderou de evaluare (job #2205721) | Borderou de evaluare (job #2121831) | Borderou de evaluare (job #1663823) | Borderou de evaluare (job #178405)
Borderou de evaluare (job #178405)
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 | 1192kb | Incorect | 0 |
2 | 16ms | 1052kb | OK | 5 |
3 | 12ms | 1156kb | Incorect | 0 |
4 | 12ms | 1164kb | Incorect | 0 |
5 | 12ms | 1064kb | Incorect | 0 |
6 | 12ms | 1028kb | OK | 5 |
7 | 16ms | 1076kb | Incorect | 0 |
8 | 36ms | 1148kb | Incorect | 0 |
9 | 44ms | 1156kb | Incorect | 0 |
10 | 40ms | 1116kb | Incorect | 0 |
11 | 40ms | 1116kb | Incorect | 0 |
12 | 48ms | 1120kb | Incorect | 0 |
13 | 12ms | 1056kb | Incorect | 0 |
14 | 32ms | 1176kb | Incorect | 0 |
15 | 52ms | 1188kb | Incorect | 0 |
16 | 20ms | 1092kb | Incorect | 0 |
17 | 24ms | 1172kb | OK | 5 |
18 | 24ms | 1164kb | Incorect | 0 |
19 | 12ms | 1160kb | Incorect | 0 |
20 | 8ms | 1172kb | Incorect | 0 |
Punctaj total | 0 |