제출 #878419

#제출 시각아이디문제언어결과실행 시간메모리
878419Sandro123봉쇄 시간 (IOI23_closing)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #pragma GCC diagnostic warning "-std=c++11" #define pb push_back #define int long long #define f first #define s second using namespace std; const int P=2*1e6+5; struct work{int v,len;}; vector <work> gr[P]; int fix[P],dist[2*P]; int max_score(int N, int X, int Y, long long K, std::vector<int> U, std::vector<int> V, std::vector<int> W){ for(int i=0; i) } main(){ ios_base::sync_with_stdio(false); int T = 1; cin >> T; while(T--){ cout<<max_score()<<endl; } }

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

closing.cpp:2:32: warning: '-std=c++11' is not an option that controls warnings [-Wpragmas]
    2 | #pragma GCC diagnostic warning "-std=c++11"
      |                                ^~~~~~~~~~~~
closing.cpp: In function 'long long int max_score(long long int, long long int, long long int, long long int, std::vector<long long int>, std::vector<long long int>, std::vector<long long int>)':
closing.cpp:13:19: error: expected ';' before ')' token
   13 |     for(int i=0; i)
      |                   ^
      |                   ;
closing.cpp:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
closing.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
closing.cpp: At global scope:
closing.cpp:15:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   15 | main(){
      | ^~~~
closing.cpp: In function 'int main()':
closing.cpp:20:25: error: too few arguments to function 'long long int max_score(long long int, long long int, long long int, long long int, std::vector<long long int>, std::vector<long long int>, std::vector<long long int>)'
   20 |         cout<<max_score()<<endl;
      |                         ^
closing.cpp:12:5: note: declared here
   12 | int max_score(int N, int X, int Y, long long K, std::vector<int> U, std::vector<int> V, std::vector<int> W){
      |     ^~~~~~~~~