Borderou de evaluare (job #1904956)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 5 martie 2017 20:59:53
Problema Exp Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:34: error: expected unqualified-id before ‘;’ token int N, M, number, i, sqrtNumber, ; ^ 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: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); ^

Ceva nu functioneaza?