Borderou de evaluare (job #2497870)

Utilizator rebecca0312Andrei Rebecca rebecca0312 Data 23 noiembrie 2019 11:38:53
Problema Note Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'int corect(int, int)': main.cpp:11:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(verif[nr][nota]==1) ^~ main.cpp:13:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' return 0; ^~~~~~ main.cpp: In function 'int main()': main.cpp:23:39: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=] scanf("%d", &voci[i][j]); ^ main.cpp:24:35: warning: array subscript has type 'char' [-Wchar-subscripts] verif[j][voci[i][j]]=1; ^ main.cpp:28:30: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=] scanf("%d", &sol[i]); ^ main.cpp:17:30: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("note.in","r",stdin); ^ main.cpp:18:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("note.out","w",stdout); ^ main.cpp:20:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &v, &n); ^ main.cpp:23:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &voci[i][j]); ^ main.cpp:26:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ main.cpp:28:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &sol[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
23ms393kbOK10
33ms393kbOK10
43ms655kbOK10
516ms1179kbOK10
661ms5636kbOK10
7150ms4194kbTime limit exceeded0
826ms5505kbOK10
9139ms5898kbOK10
1021ms5373kbOK10
Punctaj total90

Ceva nu functioneaza?