Borderou de evaluare (job #1904957)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 5 martie 2017 21:00:11
Problema Exp Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:309:28: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi %hi", &M, &N); ^ user.cpp:309:28: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:312:29: warning: format ‘%hi’ expects argument of type ‘short int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%hi", &number); ^ user.cpp:304:11: warning: variable ‘fin’ set but not used [-Wunused-but-set-variable] FILE *fin, *fout; ^ user.cpp:309:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi %hi", &M, &N); ^ user.cpp:312:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hi", &number); ^ user.cpp:333:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("exp.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms280kbIncorect0
20ms284kbIncorect0
30ms280kbOK10
40ms280kbOK10
50ms280kbOK10
60ms284kbOK10
70ms280kbOK10
80ms284kbOK10
90ms280kbOK10
100ms280kbOK10
Punctaj total80

Ceva nu functioneaza?