QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#460122#5531. ICCfryanCompile Error//C++20682b2024-07-01 02:20:372024-07-01 02:20:37

Judging History

你现在查看的是测评时间为 2024-07-01 02:20:37 的历史记录

  • [2024-07-01 04:29:05]
  • 管理员手动重测本题所有提交记录
  • [2024-07-01 02:20:37]
  • 评测
  • [2024-07-01 02:20:37]
  • 提交

answer

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <chrono>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define int long long
#define all(x) begin(x), end(x)
#define sz(x) (int) (x).size()

void run() {
	cout << "hello world" << endl;
}

signed main() {
	ios::sync_with_stdio(false); cin.tie(nullptr);
	
	return 0;
}

Details

/usr/bin/ld: /tmp/ccn6Hbsx.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccSeH0mx.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccSeH0mx.o: in function `main':
implementer.cpp:(.text.startup+0x17): undefined reference to `run'
collect2: error: ld returned 1 exit status