Submission #1289175

#TimeUsernameProblemLanguageResultExecution timeMemory
1289175daffuwuStar Trek (CEOI20_startrek)C++20
0 / 100
1 ms572 KiB
#include <bits/stdc++.h> using namespace std; #define fr first #define sc second //startrek int n, u, v; long long d; int main() { int i; scanf("%d%lld", &n, &d); for (i=1; i<=n-1; i++) { scanf("%d%d", &u, &v); } printf("2\n"); }

Compilation message (stderr)

startrek.cpp: In function 'int main()':
startrek.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   13 |     scanf("%d%lld", &n, &d);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
startrek.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   16 |         scanf("%d%d", &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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...