grader_Anna.cpp:14:20: warning: multi-character character constant [-Wmultichar]
14 | const int L_MAX = 1'000'000'000;
| ^~~~~
grader_Anna.cpp:14:28: warning: missing terminating ' character
14 | const int L_MAX = 1'000'000'000;
| ^
grader_Anna.cpp:14:28: error: missing terminating ' character
14 | const int L_MAX = 1'000'000'000;
| ^~~~~
In file included from grader_Anna.cpp:2:
testlib.h: In member function ‘std::vector<T> random_t::distinct(int, T, T)’:
testlib.h:997:9: error: ‘uint64_t’ was not declared in this scope; did you mean ‘u_int64_t’?
997 | uint64_t n = to - from + 1;
| ^~~~~~~~
| u_int64_t
testlib.h:998:30: error: ‘n’ was not declared in this scope
998 | if (uint64_t(size) > n)
| ^
testlib.h:1007:32: error: ‘n’ was not declared in this scope
1007 | expected += double(n) / double(n - i + 1);
| ^
testlib.h:1009:31: error: ‘n’ was not declared in this scope
1009 | if (expected < double(n)) {
| ^
grader_Anna.cpp: At global scope:
grader_Anna.cpp:14:20: error: expected ‘,’ or ‘;’ before '\x303030'
14 | const int L_MAX = 1'000'000'000;
| ^~~~~
grader_Anna.cpp:20:7: error: ‘N_MAX’ was not declared in this scope; did you mean ‘L_MAX’?
20 | int E[N_MAX][N_MAX];
| ^~~~~
| L_MAX
grader_Anna.cpp:20:14: error: ‘N_MAX’ was not declared in this scope; did you mean ‘L_MAX’?
20 | int E[N_MAX][N_MAX];
| ^~~~~
| L_MAX
grader_Anna.cpp:23:15: error: ‘N_MAX’ was not declared in this scope; did you mean ‘L_MAX’?
23 | bool answered[N_MAX][N_MAX];
| ^~~~~
| L_MAX
grader_Anna.cpp:23:22: error: ‘N_MAX’ was not declared in this scope; did you mean ‘L_MAX’?
23 | bool answered[N_MAX][N_MAX];
| ^~~~~
| L_MAX
grader_Anna.cpp: In function ‘std::vector<int> {anonymous}::Bruno(int, std::vector<int>)’:
grader_Anna.cpp:43:15: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
43 | for (int x : value) printf("%d ", x);
| ^~~~~
grader_Anna.cpp:43:15: error: forming reference to reference type ‘std::vector<int>&’
grader_Anna.cpp: In function ‘void SetFlag(int, int, int)’:
grader_Anna.cpp:59:7: error: ‘answered’ was not declared in this scope
59 | if (answered[r][c]) WrongAnswer(3);
| ^~~~~~~~
grader_Anna.cpp:60:3: error: ‘E’ was not declared in this scope
60 | E[r][c] = value;
| ^
grader_Anna.cpp:61:3: error: ‘answered’ was not declared in this scope
61 | answered[r][c] = true;
| ^~~~~~~~
grader_Anna.cpp: In function ‘int main(int, char**)’:
grader_Anna.cpp:66:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
66 | argv[2] = "/dev/null";
| ^~~~~~~~~~~
grader_Anna.cpp:83:35: error: ‘answered’ was not declared in this scope
83 | for (int c = 0; c < N; c++) answered[r][c] = false;
| ^~~~~~~~
grader_Anna.cpp:86:35: error: ‘E’ was not declared in this scope
86 | for (int c = 0; c < N; c++) E[r][c] = 0;
| ^
grader_Anna.cpp:90:27: error: ‘E’ was not declared in this scope
90 | vector<int> value = { E[a - 1][b - 1], E[a - 1][b], E[a - 1][b + 1], E[a][b - 1], E[a][b], E[a][b + 1], E[a + 1][b - 1], E[a + 1][b], E[a + 1][b + 1] };
| ^
grader_Anna.cpp:90:17: error: in C++98 ‘value’ must be initialized by constructor, not by ‘{...}’
90 | vector<int> value = { E[a - 1][b - 1], E[a - 1][b], E[a - 1][b + 1], E[a][b - 1], E[a][b], E[a][b + 1], E[a + 1][b - 1], E[a + 1][b], E[a + 1][b + 1] };
| ^~~~~
grader_Anna.cpp:90:155: error: could not convert ‘{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<int>’
90 | vector<int> value = { E[a - 1][b - 1], E[a - 1][b], E[a - 1][b + 1], E[a][b - 1], E[a][b], E[a][b + 1], E[a + 1][b - 1], E[a + 1][b], E[a + 1][b + 1] };
| ^
| |
| <brace-enclosed initializer list>