답안 #789411

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
789411 2023-07-21T11:03:16 Z Joibangla 사이버랜드 (APIO23_cyberland) C++17
컴파일 오류
0 ms 0 KB
#include<cyberland.h>
#include<bits/stdc++.h>
#include<algorithm>
using namespace std; 

int main(){ 
double solve(int n,int m,int h,int k,std::vector<int>x, std::vector<int>y, std::vector<int>c, std::vector<int>arr); 
int i; 

if(n/i){ 
cout<<"i"<<"\n";
}
else{ 
cout<<"-1"<<"\n";
}
}
}
} 

Compilation message

cyberland.cpp: In function 'int main()':
cyberland.cpp:10:4: error: 'n' was not declared in this scope
   10 | if(n/i){
      |    ^
cyberland.cpp: At global scope:
cyberland.cpp:17:1: error: expected declaration before '}' token
   17 | }
      | ^
cyberland.cpp:18:1: error: expected declaration before '}' token
   18 | }
      | ^