Pagini recente » Borderou de evaluare (job #1689166) | Borderou de evaluare (job #563385) | Borderou de evaluare (job #1608247) | Borderou de evaluare (job #212467) | Borderou de evaluare (job #2294467)
Borderou de evaluare (job #2294467)
Raport evaluator
Compilare:
main.cpp: In function 'std::stack<int> topologicalSortUtil(const std::vector<std::vector<int> >&, int, std::stack<int>&, std::vector<bool>&)':
main.cpp:14:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < graph[current].size(); i++) {
~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'std::stack<int> topologicalSort(const std::vector<std::vector<int> >&)':
main.cpp:26:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < graph.size(); i++) {
~~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:36:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sortaret.in", "r", stdin);
^
main.cpp:37:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sortaret.out", "w", stdout);
^
main.cpp:39:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:44:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &src, &dst);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 7ms | 131kb | OK | 10 |
5 | 23ms | 262kb | OK | 10 |
6 | 53ms | 393kb | OK | 10 |
7 | 252ms | 917kb | Time limit exceeded | 0 |
8 | 252ms | 1179kb | Time limit exceeded | 0 |
9 | 251ms | 1966kb | Time limit exceeded | 0 |
10 | 252ms | 2490kb | Time limit exceeded | 0 |
Punctaj total | 60 |