Borderou de evaluare (job #2156022)

Utilizator Vaida_Radu_AndreiVaida Radu Andrei Vaida_Radu_Andrei Data 8 martie 2018 13:19:35
Problema Numar4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:12:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d%d",n1,n2); ^ user.cpp:12:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:15:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d",v[i]); ^ user.cpp: In function ‘void fractia()’: user.cpp:28:20: error: ‘imparte’ was not declared in this scope imparte(v,2); ^ user.cpp:29:17: error: ‘imps’ was not declared in this scope imps(s,2); ^ user.cpp:33:20: error: ‘imparte’ was not declared in this scope imparte(v,5); ^ user.cpp:34:17: error: ‘imps’ was not declared in this scope imps(s,5); ^ user.cpp: In function ‘void af()’: user.cpp:40:19: error: ‘l1’ was not declared in this scope printf("%d\n",l1); ^ user.cpp:42:21: error: ‘s1’ was not declared in this scope printf("%d",s1[i]); ^ user.cpp:43:17: error: ‘l2’ was not declared in this scope pritnf("%d",l2); ^ user.cpp:43:19: error: ‘pritnf’ was not declared in this scope pritnf("%d",l2); ^ user.cpp:45:21: error: ‘s2’ was not declared in this scope printf("%d",s2[i]); ^ user.cpp: In function ‘void citire()’: user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",n1,n2); ^ user.cpp:15:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",v[i]); ^

Ceva nu functioneaza?