Submission #545746

#TimeUsernameProblemLanguageResultExecution timeMemory
545746AJ00Jakarta Skyscrapers (APIO15_skyscraper)C++14
100 / 100
216 ms130616 KiB

Compilation message (stderr)

skyscraper.cpp: In function 'int main()':
skyscraper.cpp:10:9: warning: unused variable 't' [-Wunused-variable]
   10 |     int t=1,n,k,st,fin,B,P;
      |         ^
skyscraper.cpp:48:12: warning: 'st' may be used uninitialized in this function [-Wmaybe-uninitialized]
   48 |     dist[st] = 0;
      |            ^
skyscraper.cpp:63:13: warning: 'fin' may be used uninitialized in this function [-Wmaybe-uninitialized]
   63 |     dist[fin] >= INF ? cout << "-1\n" : cout << dist[fin] << "\n";
      |             ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...