Borderou de evaluare (job #2248638)

Utilizator Kzsolty96SAPIENTIA OSZTIAN DANIEL KUCSVAN Kzsolty96 Data 29 septembrie 2018 13:07:51
Problema Big Four Status done
Runda Nationala ACM ICPC 2018 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:19:30: error: ‘k’ was not declared in this scope scanf("%i%i%i%i%i", &k, &t[0], &t[1], &t[2], &t[3]); ^ user.cpp:19:37: error: invalid types ‘int[int]’ for array subscript scanf("%i%i%i%i%i", &k, &t[0], &t[1], &t[2], &t[3]); ^ user.cpp:19:44: error: invalid types ‘int[int]’ for array subscript scanf("%i%i%i%i%i", &k, &t[0], &t[1], &t[2], &t[3]); ^ user.cpp:19:51: error: invalid types ‘int[int]’ for array subscript scanf("%i%i%i%i%i", &k, &t[0], &t[1], &t[2], &t[3]); ^ user.cpp:19:58: error: invalid types ‘int[int]’ for array subscript scanf("%i%i%i%i%i", &k, &t[0], &t[1], &t[2], &t[3]); ^ user.cpp:24:24: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] - t[0]); ^ user.cpp:24:31: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] - t[0]); ^ user.cpp:26:28: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[0] - t[2]); ^ user.cpp:26:35: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[0] - t[2]); ^ user.cpp:26:42: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[0] - t[2]); ^ user.cpp:28:32: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[2] + t[0] - t[3]) ^ user.cpp:28:39: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[2] + t[0] - t[3]) ^ user.cpp:28:46: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[2] + t[0] - t[3]) ^ user.cpp:28:53: error: invalid types ‘int[int]’ for array subscript s = abs(t[1] + t[2] + t[0] - t[3]) ^ user.cpp:12:12: warning: unused variable ‘a’ [-Wunused-variable] int t, a[4], d, n; ^ user.cpp:12:21: warning: unused variable ‘n’ [-Wunused-variable] int t, a[4], d, n; ^ user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?