Borderou de evaluare (job #2207664)

Utilizator Moise_AndreiMoise Andrei Moise_Andrei Data 26 mai 2018 12:21:15
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int32_t main()’: user.cpp:8:13: error: ‘lon’ was not declared in this scope #define int lon long ^ user.cpp:11:5: note: in expansion of macro ‘int’ int n, k; ^~~ user.cpp:12:11: error: ‘n’ was not declared in this scope in >> n >> k; ^ user.cpp:12:16: error: ‘k’ was not declared in this scope in >> n >> k; ^ user.cpp:8:17: error: expected ‘;’ before ‘long’ #define int lon long ^ user.cpp:14:9: note: in expansion of macro ‘int’ for(int i = 1; i <= n; i++){ ^~~ user.cpp:14:20: error: ‘i’ was not declared in this scope for(int i = 1; i <= n; i++){ ^ user.cpp:8:17: error: expected ‘;’ before ‘long’ #define int lon long ^ user.cpp:18:5: note: in expansion of macro ‘int’ int mn = 1000000000; ^~~ user.cpp:8:17: error: expected ‘;’ before ‘long’ #define int lon long ^ user.cpp:19:9: note: in expansion of macro ‘int’ for(int i = k; i <= n; i++){ ^~~ user.cpp:19:20: error: ‘i’ was not declared in this scope for(int i = k; i <= n; i++){ ^ user.cpp:20:9: error: ‘mn’ was not declared in this scope mn = min(mn, t[i-k]); ^~ user.cpp:8:17: error: expected ‘;’ before ‘long’ #define int lon long ^ user.cpp:23:9: note: in expansion of macro ‘int’ for(int i = k; i <= n; i++) ^~~ user.cpp:23:20: error: ‘i’ was not declared in this scope for(int i = k; i <= n; i++) ^ user.cpp:8:17: error: expected ‘;’ before ‘long’

Ceva nu functioneaza?