QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#460122#5531. ICCfryanCompile Error//C++20682b2024-07-01 02:20:372024-07-01 04:29:05

Judging History

你现在查看的是最新测评结果

  • [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;
}

詳細信息

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