Borderou de evaluare (job #807514)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Punga (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 feb. 2025 20:27:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:22: error: 'mpz_t' was not declared in this scope
3 | bool exists_solution(mpz_t K, mpz_t s, mpz_t w_res, mpz_t h_res) {
| ^~~~~
main.cpp:3:31: error: 'mpz_t' was not declared in this scope
3 | bool exists_solution(mpz_t K, mpz_t s, mpz_t w_res, mpz_t h_res) {
| ^~~~~
main.cpp:3:40: error: 'mpz_t' was not declared in this scope
3 | bool exists_solution(mpz_t K, mpz_t s, mpz_t w_res, mpz_t h_res) {
| ^~~~~
main.cpp:3:53: error: 'mpz_t' was not declared in this scope
3 | bool exists_solution(mpz_t K, mpz_t s, mpz_t w_res, mpz_t h_res) {
| ^~~~~
main.cpp:3:64: error: expression list treated as compound expression in initializer [-fpermissive]
3 | bool exists_solution(mpz_t K, mpz_t s, mpz_t w_res, mpz_t h_res) {
| ^
main.cpp: In function 'int main()':
main.cpp:65:17: error: 'mpz_t' was not declared in this scope
65 | std::vector<mpz_t> K(T);
| ^~~~~
main.cpp:65:22: error: template argument 1 is invalid
65 | std::vector<mpz_t> K(T);
| ^
main.cpp:65:22: error: template argument 2 is invalid
main.cpp:67:19: error: invalid types 'int[int]' for array subscript
67 | mpz_init(K[i]);
| ^
main.cpp:67:9: error: 'mpz_init' was not declared in this scope
67 | mpz_init(K[i]);
| ^~~~~~~~
main.cpp:74:22: error: invalid types 'int[int]' for array subscript
74 | mpz_set_str(K[i], K_str.c_str(), 10);
| ^
main.cpp:74:9: error: 'mpz_set_str' was not declared in this scope; did you mean 'cpu_set_t'?
74 | mpz_set_str(K[i], K_str.c_str(), 10);
| ^~~~~~~~~~~
| cpu_set_t
main.cpp:78:14: error: expected ';' before 's_low'
78 | mpz_t s_low, s_high, s_mid, w_candidate, h_candidate;
| ^~~~~~
| ;
main.cpp:79:19: error: 's_low' was not declared in this scope
79 | mpz_inits(s_low, s_high, s_mid, w_candidate, h_candidate, NULL);
| ^~~~~
main.cpp:79:26: error: 's_high' was not declared in this scope
79 | mpz_inits(s_low, s_high, s_mid, w_candidate, h_candidate, NULL);
| ^~~~~~
main.cpp:79:34: error: 's_mid' was not declared in this scope; did you mean 'si_pid'?
79 | mpz_inits(s_low, s_high, s_mid, w_candidate, h_candidate, NULL);
| ^~~~~
| si_pid