제출 #789346

#제출 시각아이디문제언어결과실행 시간메모리
789346Joibangla사이버랜드 (APIO23_cyberland)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005]; cin>>n>>m>>k>>h; for(i=1; i<=n ; i++){ cout<<"std::min(c[i])"<<"/n"; } cout<<endl; }

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

cyberland.cpp: In function 'int main()':
cyberland.cpp:9:5: error: 'i' was not declared in this scope
    9 | for(i=1; i<=n ; i++){
      |     ^
cyberland.cpp:5:13: warning: unused variable 'x' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |             ^
cyberland.cpp:5:24: warning: unused variable 'y' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |                        ^
cyberland.cpp:5:34: warning: unused variable 'c' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |                                  ^
cyberland.cpp:5:45: warning: unused variable 'arr' [-Wunused-variable]
    5 | int n,m,k,h,x[1000005],y[100005],c[1000005],arr[100005];
      |                                             ^~~