제출 #789345

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

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

cyberland.cpp: In function 'int main()':
cyberland.cpp:5:13: warning: unused variable 'x' [-Wunused-variable]
    5 | int n,m,k,h,x[m],y[m],c[m],arr[n];
      |             ^
cyberland.cpp:5:18: warning: unused variable 'y' [-Wunused-variable]
    5 | int n,m,k,h,x[m],y[m],c[m],arr[n];
      |                  ^
cyberland.cpp:5:23: warning: unused variable 'c' [-Wunused-variable]
    5 | int n,m,k,h,x[m],y[m],c[m],arr[n];
      |                       ^
cyberland.cpp:5:28: warning: unused variable 'arr' [-Wunused-variable]
    5 | int n,m,k,h,x[m],y[m],c[m],arr[n];
      |                            ^~~
cyberland.cpp:5:16: warning: 'm' is used uninitialized in this function [-Wuninitialized]
    5 | int n,m,k,h,x[m],y[m],c[m],arr[n];
      |                ^
cyberland.cpp:5:33: warning: 'n' is used uninitialized in this function [-Wuninitialized]
    5 | int n,m,k,h,x[m],y[m],c[m],arr[n];
      |                                 ^
/usr/bin/ld: /tmp/ccD4hZQP.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccOQP9PP.o:cyberland.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccD4hZQP.o: in function `main':
grader.cpp:(.text.startup+0x696): undefined reference to `solve(int, int, int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status