Submission #789414

#TimeUsernameProblemLanguageResultExecution timeMemory
789414JoibanglaCyberland (APIO23_cyberland)C++17
Compilation error
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"; } }

Compilation message (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