Submission #823846

#TimeUsernameProblemLanguageResultExecution timeMemory
823846irmuunComputer Network (BOI14_network)C++17
25 / 100
70 ms7892 KiB
#include<bits/stdc++.h> #include "network.h" using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() void findRoute(int N,int a,int b){ vector<int>route; int dist=ping(a,b); dist++; vector<int>v(dist); for(int i=1;i<=N;i++){ if(a==i||b==i) continue; int x=ping(a,i),y=ping(b,i); x++,y++; if(x+y==dist){ v[x-1]=i; } } v[dist-1]=b; for(int i=0;i<dist;i++){ travelTo(v[i]); } }

Compilation message (stderr)

grader.c: In function 'int main()':
grader.c:48:11: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |     scanf ("%d%d%d%d", &N, &a, &b, &M);
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
grader.c:51:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   51 |             scanf("%d", &distance[u][v]);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...