/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:16:5: error: 'map' was not declared in this scope
     map<int,int> priceAndCha;
     ^~~
foo.cc:16:9: error: expected primary-expression before 'int'
     map<int,int> priceAndCha;
         ^~~
foo.cc:17:9: error: expected primary-expression before 'int'
     map<int,int> priceAndProfit;
         ^~~
foo.cc:18:13: error: redeclaration of 'int Salenum'
     int i=0,Salenum=priceAndSalenum[1];
             ^~~~~~~
foo.cc:6:31: note: 'int Salenum' previously declared here
     int priceGovernment,price,Salenum,cutPerYuan;
                               ^~~~~~~
foo.cc:22:9: error: 'priceAndProfit' was not declared in this scope
         priceAndProfit[priceAndProfit[i]]=profit;
         ^~~~~~~~~~~~~~
foo.cc:9:30: warning: unused variable 'maxProfitPrice' [-Wunused-variable]
     int maxProfit=0,profit=0,maxProfitPrice=0;
                              ^~~~~~~~~~~~~~

信息

递交者
类型
递交
题目
P1346 税收与补贴问题
语言
C++
递交时间
2019-11-29 23:24:09
评测时间
2019-11-29 23:24:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes