Borderou de evaluare (job #2525351)

Utilizator mateicosCostescu Matei mateicos Data 17 ianuarie 2020 10:22:52
Problema Karma 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:31:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=] scanf("%d%d\n", &n, &m); ^ main.cpp:31:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'char*' [-Wformat=] main.cpp:33:16: error: 'gets' was not declared in this scope gets(a[i]); ^ main.cpp:28:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("karma.in", "r", stdin); ^ main.cpp:29:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("karma.out", "w", stdout); ^ main.cpp:31:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &m); ^ Non zero exit status: 1

Ceva nu functioneaza?