제출 #341986

#제출 시각아이디문제언어결과실행 시간메모리
341986MarlovRail (IOI14_rail)C++14
컴파일 에러
0 ms0 KiB
/*
Code by @marlov       
*/
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <utility>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <stack>
#include <queue>
#include <iterator>
#include <bitset>
#include "rail.h"
using namespace std;
typedef long long ll;
typedef pair<int,int> ii;

void findLocation(int n, int first, vector<int> location, vector<int> stype){
	for(int i=0;i<n;i++){
		location[i]=first+getDistance(0,i);
		stype[i]=2;
	}	
	stype[0]=1;
	return;
}

/*
int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);
	
    return 0;
}
*/

/* stuff you should look for
	* int overflow, array bounds
	* special cases (n=1,n=0?)
	* do smth instead of nothing and stay organized
*/

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

/tmp/ccgM1yDx.o: In function `main':
grader.cpp:(.text.startup+0x2bf): undefined reference to `findLocation'
collect2: error: ld returned 1 exit status