/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In constructor 'Mat::Mat()':
/in/foo.cc:12:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 1; i <= n; ++i)
                   ~~^~~~
/in/foo.cc:13:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int j = 1; j <= n; ++j)
                    ~~^~~~
/in/foo.cc: In member function 'Mat Mat::operator*(Mat)':
/in/foo.cc:20:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 1; i <= n; ++i)
                   ~~^~~~
/in/foo.cc:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int j = 1; j <= n; ++j)
                    ~~^~~~
/in/foo.cc:22:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int k = 1; k <= n; ++k)
                     ~~^~~~
/in/foo.cc: In member function 'void Mat::printMat()':
/in/foo.cc:29:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i = 1; i <= n; ++i)
                   ~~^~~~
/in/foo.cc:31:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int j = 1; j <= n; ++j)
                    ~~^~~~
/in/foo.cc:32:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat=]
     printf("%d ", value[i][j]);
                              ^
/in/foo.cc: In function 'Mat power(Mat, long long unsigned int)':
/in/foo.cc:63:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   if (m & 1 == 1)
           ~~^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 712.0 KiB

信息

递交者
类型
自测
题目
P1000 A+B Problem
语言
C++
递交时间
2019-03-23 11:15:39
评测时间
2019-03-23 11:15:39
评测机
分数
0
总耗时
1ms
峰值内存
712.0 KiB