Submission #904348

# Submission time Handle Problem Language Result Execution time Memory
904348 2024-01-12T04:31:56 Z vjudge1 Land of the Rainbow Gold (APIO17_rainbow) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
double rnd() { return double(rand()) / RAND_MAX; }
main(){
    cout<<"Vlad gay"<<endl;
}

Compilation message

rainbow.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
/usr/bin/ld: /tmp/ccvtadxF.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccutJCUE.o:rainbow.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccvtadxF.o: in function `main':
grader.cpp:(.text.startup+0xed): undefined reference to `init(int, int, int, int, int, char*)'
/usr/bin/ld: grader.cpp:(.text.startup+0x167): undefined reference to `colour(int, int, int, int)'
collect2: error: ld returned 1 exit status