제출 #931965

#제출 시각아이디문제언어결과실행 시간메모리
931965skyvn97선물상자 (IOI15_boxes)C++14
0 / 100
1 ms2396 KiB
#ifndef SKY #include "boxes.h" #endif // SKY #include<bits/stdc++.h> using namespace std; #define MAX 10001000 int numTeam, maxCapa, numPos, pos[MAX]; int dp[MAX], ahihi[MAX]; long long result; void solve(void) { result = 0; for (int i = 0; i < numTeam; i++) result += pos[i]; } long long deliveryFast(int NN, int KK, int LL, int positions[]) { /// ham code thuat chuan } long long deliverySlow(int NN, int KK, int LL, int positions[]) { /// ham code thuat trau/duyet vet can } long long delivery(int NN, int KK, int LL, int positions[]) { // doc du lieu numTeam = NN; maxCapa = KK; numPos = LL; for (int i = 0; i < numTeam; i++) pos[i] = positions[i]; solve(); return result; } #ifdef SKY afsdjqhlsoifehwoqieufhpaofeuiahpofiueahpwofeuihawpeiufahpeofijafeoipafoieawhiu #endif // SKY

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

boxes.cpp: In function 'long long int deliveryFast(int, int, int, int*)':
boxes.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
boxes.cpp:18:28: warning: unused parameter 'NN' [-Wunused-parameter]
   18 | long long deliveryFast(int NN, int KK, int LL, int positions[]) {
      |                        ~~~~^~
boxes.cpp:18:36: warning: unused parameter 'KK' [-Wunused-parameter]
   18 | long long deliveryFast(int NN, int KK, int LL, int positions[]) {
      |                                ~~~~^~
boxes.cpp:18:44: warning: unused parameter 'LL' [-Wunused-parameter]
   18 | long long deliveryFast(int NN, int KK, int LL, int positions[]) {
      |                                        ~~~~^~
boxes.cpp:18:52: warning: unused parameter 'positions' [-Wunused-parameter]
   18 | long long deliveryFast(int NN, int KK, int LL, int positions[]) {
      |                                                ~~~~^~~~~~~~~~~
boxes.cpp: In function 'long long int deliverySlow(int, int, int, int*)':
boxes.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
boxes.cpp:22:28: warning: unused parameter 'NN' [-Wunused-parameter]
   22 | long long deliverySlow(int NN, int KK, int LL, int positions[]) {
      |                        ~~~~^~
boxes.cpp:22:36: warning: unused parameter 'KK' [-Wunused-parameter]
   22 | long long deliverySlow(int NN, int KK, int LL, int positions[]) {
      |                                ~~~~^~
boxes.cpp:22:44: warning: unused parameter 'LL' [-Wunused-parameter]
   22 | long long deliverySlow(int NN, int KK, int LL, int positions[]) {
      |                                        ~~~~^~
boxes.cpp:22:52: warning: unused parameter 'positions' [-Wunused-parameter]
   22 | long long deliverySlow(int NN, int KK, int LL, int positions[]) {
      |                                                ~~~~^~~~~~~~~~~
#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...