Submission #878419

# Submission time Handle Problem Language Result Execution time Memory
878419 2023-11-24T10:34:18 Z Sandro123 Closing Time (IOI23_closing) C++17
Compilation error
0 ms 0 KB
#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;
    }
}

Compilation message

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){
      |     ^~~~~~~~~