제출 #1321744

#제출 시각아이디문제언어결과실행 시간메모리
1321744vancongloc1234팀들 (IOI15_teams)C++20
컴파일 에러
0 ms0 KiB
#ifndef SKY #include "teams.h" #endif // SKY #include <bits/stdc++.h> #define Nmax 500009 #define int long long #define ed "\n" #define fast() ios_base::sync_with_stdio(false); cin.tie(nullptr); #define INF 100000000000000009 #define mod 1000000007 #define lim 1000001 using namespace std; void (int n, int a[], int b[]) { cout<<1; } int can (int m, int k[]) { cout<<0; } #ifdef SKY signed main() { fast(); int n,q,a[Nmax],b[Nmax],m,k[Nmax]; cin>>n>>q; for(int i=1;i<=n;i++) { cin>>a[i]>>b[i]; } while(q--) { cin>>m; for(int i=1;i<=m;i++)cin>>k[i]; } return 0; } /* 1 6 7 6 15 17 14 15 12 16 */

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

teams.cpp:21: error: unterminated #ifdef
   21 | #ifdef SKY
      | 
teams.cpp:6:13: error: expected unqualified-id before 'long'
    6 | #define int long long
      |             ^~~~
teams.cpp:13:7: note: in expansion of macro 'int'
   13 | void (int n, int a[], int b[])
      |       ^~~
teams.cpp:13:7: error: expected ')' before 'long'
   13 | void (int n, int a[], int b[])
      |      ~^
      |       )
teams.cpp: In function 'long long int can(long long int, long long int*)':
teams.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^