Submission #628409

#TimeUsernameProblemLanguageResultExecution timeMemory
628409BobbyCatfish Farm (IOI22_fish)C++17
Compilation error
0 ms0 KiB
#inlcude<bits/stdc++.h> #include "fish.h" using namespace std; #define int long long int max_weights(int N, int M, int[] X, int[] Y, int[] W){ int ans = 0; for(int x:W)ans+=x; return ans; }

Compilation message (stderr)

fish.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
fish.cpp:5:37: error: expected ',' or '...' before 'X'
    5 | int max_weights(int N, int M, int[] X, int[] Y, int[] W){
      |                                     ^
fish.cpp: In function 'long long int max_weights(long long int, long long int, long long int*)':
fish.cpp:7:12: error: 'W' was not declared in this scope
    7 |  for(int x:W)ans+=x;
      |            ^