Submission #1095995

# Submission time Handle Problem Language Result Execution time Memory
1095995 2024-10-03T14:24:11 Z YugiHacker Race (IOI11_race) C++17
0 / 100
5 ms 10072 KB
#ifndef yugi
#include "race.h"
#endif // yugi

#define maxn 200005
#include<bits/stdc++.h>
using namespace std;
int n, k;
vector <int> a[maxn];
int best_path(int N, int K, int H[][2], int L[])
{
  n = N, k = K;
}

#ifdef yugi
main() {
    int n, k; cin >> n >> k;
    int h[n+1][2], l[n+1];
    cin >> n >> k;
    for (int i=1; i<n; i++) {
        cin >> h[i][0] >> h[i][1] >> l[i];
    }
    cout << best_path(n, k, h, l);
}
#endif // yugi

Compilation message

race.cpp: In function 'int best_path(int, int, int (*)[2], int*)':
race.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 10072 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 10072 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 10072 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 5 ms 10072 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -