제출 #1157758

#제출 시각아이디문제언어결과실행 시간메모리
1157758aritro_Nile (IOI24_nile)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; typedef long long int ll; #define int ll /*vector<int> calculate_costs( vector<int>W,vector<int>A, vector<int>B,vector<int>E){ vector<int> costs(e.size(),2); return costs; }*/ int main(){ int n; cin>>n; int w[n],a[n],b[n]; for(int i=0;i<n;i++) cin>>w[i]>>a[i]>>b[i]; int q; cin>>q; while(q--){ int x; cin>>x; cout<<2<<endl; } }

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

nile.cpp:5:13: error: '::main' must return 'int'
    5 | #define int ll
      |             ^~
nile.cpp:13:1: note: in expansion of macro 'int'
   13 | int main(){
      | ^~~