/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void addNum(std::vector<Num>&, Num&)':
/in/foo.cc:137:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<v.size();i++) {
                 ~^~~~~~~~~
/in/foo.cc: In function 'Num& getGoodOne(int, int)':
/in/foo.cc:201:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<vi.size();i++) {
                 ~^~~~~~~~~~
/in/foo.cc:240:16: error: a function-definition is not allowed here before '{' token
 void preCalc() {
                ^
/in/foo.cc:284:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc:284:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: At global scope:
/in/foo.cc:33:13: warning: 'fixOneAddr' defined but not used [-Wunused-variable]
 static Num* fixOneAddr;
             ^~~~~~~~~~

信息

递交者
类型
递交
题目
P1854 火柴游戏
语言
C++
递交时间
2024-06-04 20:32:40
评测时间
2024-06-04 20:32:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes