| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1304727 | dshfjka | Measures (CEOI22_measures) | C++20 | 컴파일 에러 | 0 ms | 0 KiB |
include <bits/stdc++.h>
#define LL long long
using namespace std;
int main(){
LL N,M,D;
cin >> N >> M >> D;
LL B,pref=0,ans=0;
for (int i=0;i<M;i++) {
cin >> B;
B -= D*i;
pref = max(pref, B);
ans = max(ans, pref-B);
cout << ans/2;
if (ans % 2 == 1) {
cout << ".5";
}
cout << " ";
}
}
컴파일 시 표준 에러 (stderr) 메시지
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:10: error: 'bits' was not declared in this scope
1 | include <bits/stdc++.h>
| ^~~~
Main.cpp:1:15: error: 'stdc' was not declared in this scope; did you mean 'std'?
1 | include <bits/stdc++.h>
| ^~~~
| std
Main.cpp:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
Main.cpp: In function 'int main()':
Main.cpp:6:5: error: 'cin' was not declared in this scope
6 | cin >> N >> M >> D;
| ^~~
Main.cpp:11:16: error: 'max' was not declared in this scope
11 | pref = max(pref, B);
| ^~~
Main.cpp:13:9: error: 'cout' was not declared in this scope
13 | cout << ans/2;
| ^~~~