QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#323711 | #4834. Trijection | gg_gong | Compile Error | / | / | C++14 | 9.4kb | 2024-02-10 12:11:56 | 2024-02-10 12:11:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:12: warning: "all" redefined 12 | #define all(x) (x).begin(),(x).end() | answer.code:4: note: this is the location of the previous definition 4 | #define all(x) ((x).begin()), ((x).end()) | answer.code: In function ‘std::vector<std::__cxx11::basic_string<char> > subtask1::decode(subtask1::ll, int)’: answer.code:87:16: error: missing template arguments before ‘poly’ 87 | vector poly(r,string(c,'.')); | ^~~~ answer.code:102:32: error: ‘poly’ was not declared in this scope 102 | rep(j,p1,p2+1) poly[r-1-i][j]='#'; | ^~~~ answer.code:105:16: error: ‘poly’ was not declared in this scope 105 | return poly; | ^~~~ answer.code: In function ‘void decodepoly(LL)’: answer.code:124:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wformat=] 124 | printf("poly\n%d %d\n", vec.size(), vec[0].size()); | ~^ ~~~~~~~~~~ | | | | int std::vector<std::__cxx11::basic_string<char> >::size_type {aka long unsigned int} | %ld answer.code:124:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 124 | printf("poly\n%d %d\n", vec.size(), vec[0].size()); | ~^ ~~~~~~~~~~~~~ | | | | int std::__cxx11::basic_string<char>::size_type {aka long unsigned int} | %ld answer.code: In function ‘LL encodetriang()’: answer.code:184:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 184 | scanf("%d", &tr[i][d]); | ~~~~~^~~~~~~~~~~~~~~~~ answer.code: In function ‘LL encodeperm()’: answer.code:269:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 269 | scanf("%d", &x); | ~~~~~^~~~~~~~~~