제출 #789414

#제출 시각아이디문제언어결과실행 시간메모리
789414Joibangla사이버랜드 (APIO23_cyberland)C++17
컴파일 에러
0 ms0 KiB
#include<cyberland.h> #include<bits/stdc++.h> #include<algorithm> using namespace std; int main(){ int n; int i; if(n/i){ cout<<"i"<<"\n"; } else{ cout<<"-1"<<"\n"; } }

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

cyberland.cpp: In function 'int main()':
cyberland.cpp:10:5: warning: 'n' is used uninitialized in this function [-Wuninitialized]
   10 | if(n/i){
      |    ~^~
cyberland.cpp:10:5: warning: 'i' is used uninitialized in this function [-Wuninitialized]
/usr/bin/ld: /tmp/ccUEtDGK.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccrR6vLJ.o:cyberland.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccUEtDGK.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