Borderou de evaluare (job #2402236)

Utilizator IoanaDraganescuIoana Draganescu IoanaDraganescu Data 10 aprilie 2019 15:03:39
Problema Poarta Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:21:46: error: 'INT_MAX' was not declared in this scope int x1 = 0, y1 = 0, x2 = 0, y2 = 0, d1 = INT_MAX, d2 = INT_MAX, s1 = 0, s2 = 0; ^~~~~~~ main.cpp:31:13: error: 's1' was not declared in this scope s1 = 0; ^~ main.cpp:36:13: error: 's1' was not declared in this scope s1 = (s1 + d[a + 1][b + 1]) % mod; ^~ main.cpp:38:41: error: 'd2' was not declared in this scope if (abs(l2 - x) + abs(c2 - y) < d2) ^~ main.cpp:43:13: error: 's2' was not declared in this scope s2 = 0; ^~ main.cpp:45:42: error: 'd2' was not declared in this scope if (abs(l2 - x) + abs(c2 - y) == d2) ^~ main.cpp:48:13: error: 's2' was not declared in this scope s2 = (s2 + d[a + 1][b + 1]) % mod; ^~ main.cpp:52:21: error: 'd2' was not declared in this scope if (dist < d1 + d2 + 1) ^~ main.cpp:61:18: error: 's1' was not declared in this scope fout << (s1 * s2) % mod << '\n'; ^~ main.cpp:61:23: error: 's2' was not declared in this scope fout << (s1 * s2) % mod << '\n'; ^~ main.cpp:67:36: error: 's1' was not declared in this scope fout << (d[a + 1][b + 1] + s1 * s2 % mod) % mod << '\n'; ^~ main.cpp:67:41: error: 's2' was not declared in this scope fout << (d[a + 1][b + 1] + s1 * s2 % mod) % mod << '\n'; ^~ Non zero exit status: 1

Ceva nu functioneaza?