teams.cpp: In function 'void add(int)':
teams.cpp:11:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n) for(int i=0;i<n;i++)
teams.cpp:25:6:
rep(i,v.size()){
~~~~~~~~~~
teams.cpp:25:2: note: in expansion of macro 'rep'
rep(i,v.size()){
^~~
teams.cpp: In function 'int sum(int)':
teams.cpp:39:9: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return res;
^~~
teams.cpp: In function 'int can(int, int*)':
teams.cpp:11:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n) for(int i=0;i<n;i++)
teams.cpp:53:7:
rep(j,v.size())if(v[j].first<K[i]&&dat[j]==1)dat[j]=2;
~~~~~~~~~~
teams.cpp:53:3: note: in expansion of macro 'rep'
rep(j,v.size())if(v[j].first<K[i]&&dat[j]==1)dat[j]=2;
^~~
teams.cpp:11:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,n) for(int i=0;i<n;i++)
teams.cpp:62:7:
rep(j,v.size())if(dat[j]==1){
~~~~~~~~~~
teams.cpp:62:3: note: in expansion of macro 'rep'
rep(j,v.size())if(dat[j]==1){
^~~