Submission #797556

#TimeUsernameProblemLanguageResultExecution timeMemory
797556XJP12수천개의 섬 (IOI22_islands)C++17
Compilation error
0 ms0 KiB
pair<bool, int []> find_journey(int n, int m, int[] u, int[] v){
	bool ban=true;
	int ban1=0;
	for(int i=0; i<m; i++){
		if(u[i]==0){
			ban1++;
		}else{
			ban=false;
		}
	}
	int a[7];
	if(ban==false && ban1>1){
		a[7]={0,1,0,1,0,1,0};
		return {true,a};
	}else{
		return {false,a};
	}
}

Compilation message (stderr)

islands.cpp:1:1: error: 'pair' does not name a type
    1 | pair<bool, int []> find_journey(int n, int m, int[] u, int[] v){
      | ^~~~