Borderou de evaluare (job #1627872)

Utilizator teodor440Teodor Tonghioiu teodor440 Data 3 martie 2016 19:04:51
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:14:17: error: ‘n’ was not declared in this scope scanf("%d%d", &n, &m); ^ user.cpp:14:21: error: ‘m’ was not declared in this scope scanf("%d%d", &n, &m); ^ user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in", "r", stdin); ^ user.cpp:13:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cmlsc.in", "w", stdout); ^ user.cpp:15:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= n; i++) scanf("%d", &a[i]); ^ user.cpp:16:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= m; i++) scanf("%d", &b[i]); ^

Ceva nu functioneaza?