Borderou de evaluare (job #2523925)

Utilizator popashtefan10Popa Stefan popashtefan10 Data 14 ianuarie 2020 21:09:52
Problema Permbit Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:49: error: 'int index [1000005]' redeclared as different kind of symbol int poz[NMAX + 5], val[NMAX + 5], index[NMAX + 5]; ^ In file included from /usr/include/c++/6/cstring:42:0, from main.cpp:3: /usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)' index (const char *__s, int __c) __THROW ^~~~~ main.cpp: In function 'int main()': main.cpp:44:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i = 1; i <= m; i++) ^~~ main.cpp:46:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' gr.push(m); ^~ main.cpp:39:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("permbit.in", "r", stdin); ^ main.cpp:40:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("permbit.out", "w", stdout); ^ main.cpp:43:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d ", &cerinta, &n, &m); ^ main.cpp:47:30: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(s1 + 1, m + 5, stdin); ^ main.cpp:49:32: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fgets(s2 + 1, m + 5, stdin); ^ Non zero exit status: 1

Ceva nu functioneaza?