제출 #966254

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
9662542024-04-19 15:23:28A7med_MousaBitaro’s Party (JOI18_bitaro)C++14
0 / 100
2 ms604 KiB
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <array>
#include <cassert>
using namespace std;
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
vector<int>val;
bool comp(int &a, int &b){
return val[a] > val[b];
}
void solve(){
int n, m, q; cin >> n >> m >> q;
vector<int>adj[n];
for (int i = 0 ; i < m; ++i){
int u, v; cin >> u >> v;
--u, --v;
adj[v].emplace_back(u);
}
vector<int>vis(n);
val.resize(n);
int sq = sqrt(n);
vector<vector<pair<int ,int>>>dp(n);
for (int node = 0; node < n; ++node){
vector<int>cur;
cur.emplace_back(node);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

bitaro.cpp: In function 'void solve()':
bitaro.cpp:34:24: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   34 |             for (auto &[value , cur_node] : dp[child]){
      |                        ^
bitaro.cpp:64:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   64 |                 if (take[j] != i);
      |                 ^~
bitaro.cpp:65:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   65 |                     ans = max(ans, dp1[j]);
      |                     ^~~
bitaro.cpp:73:24: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   73 |             for (auto &[val, cur_node] : dp[node])
      |                        ^
bitaro.cpp:73:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   73 |             for (auto &[val, cur_node] : dp[node])
      |             ^~~
bitaro.cpp:79:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   79 |                 if (x)
      |                 ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...