Borderou de evaluare (job #2273240)

Utilizator Dragne.Andrei11Dragne Andrei Dragne.Andrei11 Data 31 octombrie 2018 10:53:02
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int exp()': main.cpp:18:26: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp:23:26: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp: In function 'int termen()': main.cpp:37:26: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp:42:26: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp: In function 'int factor()': main.cpp:54:22: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp:56:22: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp:63:26: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp: In function 'int main()': main.cpp:74:18: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=] scanf("%c", c); ^ main.cpp: In function 'int exp()': main.cpp:18:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ main.cpp:23:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ main.cpp: In function 'int termen()': main.cpp:37:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ main.cpp:42:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ main.cpp: In function 'int factor()': main.cpp:54:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ main.cpp:56:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ main.cpp:63:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms131kbIncorect0
32ms131kbIncorect0
42ms131kbIncorect0
52ms131kbIncorect0
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbOK10
102ms131kbIncorect0
Punctaj total10

Ceva nu functioneaza?