Submission #1096683

#TimeUsernameProblemLanguageResultExecution timeMemory
1096683nguyenvuRailway (BOI17_railway)C++14
0 / 100
2 ms1628 KiB
#include<bits/stdc++.h> #define ll long long #define endl "\n" #define FILE "SUADUONG" using namespace std; int n,m,k; vector<int> a[50005]; int main() { ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); freopen(FILE".inp","r",stdin); freopen(FILE".out","w",stdout); cin>>n>>m>>k; for(int i=1;i<n;i++){ int u,v; cin>>u>>v; a[u].push_back(v); a[v].push_back(u); } while(m--){ int x; cin>>x; for(int i=1;i<=x;i++){ int y; cin>>y; } } cout<<0; }

Compilation message (stderr)

railway.cpp: In function 'int main()':
railway.cpp:12:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |     freopen(FILE".inp","r",stdin);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
railway.cpp:13:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
   13 |     freopen(FILE".out","w",stdout);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
#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...