Borderou de evaluare (job #2509841)

Utilizator stefanpiturStefan Alexandru Pitur stefanpitur Data 14 decembrie 2019 23:28:19
Problema Multiplu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9:0, from /usr/include/c++/6/cstdint:41, from /usr/include/c++/6/bits/char_traits.h:420, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: main.cpp:4:11: error: expected unqualified-id before numeric constant const int SIZE_MAX = 2000000; ^ main.cpp:4:11: error: expected ')' before numeric constant main.cpp:5:17: error: size of array 'ult' is too large int ult[SIZE_MAX],pred[SIZE_MAX]; ^ main.cpp:5:32: error: size of array 'pred' is too large int ult[SIZE_MAX],pred[SIZE_MAX]; ^ main.cpp:6:15: error: size of array 'q' is too large int q[SIZE_MAX]; ^ main.cpp: In function 'int main()': main.cpp:29:9: error: 'ult' was not declared in this scope ult[i] = -1; ^~~ main.cpp:30:5: error: 'q' was not declared in this scope q[++dr] = 1, ult[1] = 1, pred[1] = 0; ^ main.cpp:30:18: error: 'ult' was not declared in this scope q[++dr] = 1, ult[1] = 1, pred[1] = 0; ^~~ main.cpp:30:30: error: 'pred' was not declared in this scope q[++dr] = 1, ult[1] = 1, pred[1] = 0; ^~~~ main.cpp:25:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d %d",&a,&b); ^ Non zero exit status: 1

Ceva nu functioneaza?