제출 #1203359

#제출 시각아이디문제언어결과실행 시간메모리
1203359ankit_singh_programs은하철도 (APIO24_train)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define fr(i,n) for(int i=0;i<n;++i) #define fr1(i,n) for(int i=1;i<=n;++i) #define frn(i,n) for(int i=0;i<=n;++i) int solve(int n,int m,int w,ve<int> T,ve<int> X, ve<int> Y,ve<int> A,ve<int> B,ve<int> C,ve<int> W){ for(int i=1;i<m;++i){ if(X[i-1]>Y[i]) return -1; } return 0; } void run(){ /* #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); #endif */ } int main(){ solve(); return 0; }

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

train.cpp:19:30: error: 've' has not been declared
   19 | int solve(int  n,int m,int w,ve<int> T,ve<int> X, ve<int> Y,ve<int> A,ve<int> B,ve<int> C,ve<int> W){
      |                              ^~
train.cpp:19:32: error: expected ',' or '...' before '<' token
   19 | int solve(int  n,int m,int w,ve<int> T,ve<int> X, ve<int> Y,ve<int> A,ve<int> B,ve<int> C,ve<int> W){
      |                                ^
train.cpp: In function 'int solve(int, int, int, int)':
train.cpp:27:20: error: 'X' was not declared in this scope
   27 |                 if(X[i-1]>Y[i]) return -1;
      |                    ^
train.cpp:27:27: error: 'Y' was not declared in this scope
   27 |                 if(X[i-1]>Y[i]) return -1;
      |                           ^
train.cpp: In function 'int main()':
train.cpp:76:14: error: too few arguments to function 'int solve(int, int, int, int)'
   76 |         solve();
      |         ~~~~~^~
train.cpp:19:5: note: declared here
   19 | int solve(int  n,int m,int w,ve<int> T,ve<int> X, ve<int> Y,ve<int> A,ve<int> B,ve<int> C,ve<int> W){
      |     ^~~~~