Submission #629067

#TimeUsernameProblemLanguageResultExecution timeMemory
629067kwongwengCatfish Farm (IOI22_fish)C++17
3 / 100
86 ms7264 KiB
#include "fish.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; #define FOR(i,a,b) for(int i = a; i < b; i++) ll max_weights(int N, int M, vi X, vi Y, vi W) { ll ans = 0; FOR(i,0,W.size()){ ans += W[i]; } return ans; }

Compilation message (stderr)

fish.cpp: In function 'll max_weights(int, int, vi, vi, vi)':
fish.cpp:8:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 | #define FOR(i,a,b) for(int i = a; i < b; i++)
......
   12 |   FOR(i,0,W.size()){
      |       ~~~~~~~~~~~~                   
fish.cpp:12:3: note: in expansion of macro 'FOR'
   12 |   FOR(i,0,W.size()){
      |   ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...