Borderou de evaluare (job #3129826)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 15 mai 2023 22:08:05
Problema Arb3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: 'vector' does not name a type 9 | vector<long long> S[ MAX ]; | ^~~~~~ main.cpp:11:1: error: 'vector' does not name a type 11 | vector<int> cost[ MAX ]; | ^~~~~~ main.cpp: In function 'long long int solve(int, long long int)': main.cpp:19:18: error: 'cost' was not declared in this scope; did you mean 'cout'? 19 | int p1 = cost[ Dad ].size() - ( upper_bound( cost[ Dad ].rbegin(), cost[ Dad ].rend(), v[ u ] - cnt ) - cost[ Dad ].rbegin() + 1 ); | ^~~~ | cout main.cpp:19:41: error: 'upper_bound' was not declared in this scope 19 | int p1 = cost[ Dad ].size() - ( upper_bound( cost[ Dad ].rbegin(), cost[ Dad ].rend(), v[ u ] - cnt ) - cost[ Dad ].rbegin() + 1 ); | ^~~~~~~~~~~ main.cpp:21:28: error: 'S' was not declared in this scope 21 | return solve( Dad, S[ Dad ][ p1 ] - ( v[ u ] - cnt + 1 ) * ( p1 + 1 ) + p2 + 2 ); | ^ main.cpp: In function 'int main()': main.cpp:38:9: error: 'cost' was not declared in this scope; did you mean 'cout'? 38 | cost[ dad[ i ] ].push_back( v[ i ] ); | ^~~~ | cout main.cpp:42:15: error: 'cost' was not declared in this scope; did you mean 'cout'? 42 | sort( cost[ i ].begin(), cost[ i ].end(), greater<int>() ); | ^~~~ | cout main.cpp:42:9: error: 'sort' was not declared in this scope; did you mean 'short'? 42 | sort( cost[ i ].begin(), cost[ i ].end(), greater<int>() ); | ^~~~ | short main.cpp:46:13: error: 'S' was not declared in this scope 46 | S[ i ].push_back( s ); | ^ Non zero exit status: 1

Ceva nu functioneaza?