Borderou de evaluare (job #2200671)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 2 mai 2018 09:44:22
Problema Deque Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:21:5: error: stray ‘#’ in program {#include <cstdio> ^ user.cpp: In function ‘int main()’: user.cpp:17:4: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^~~~ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:17:10: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:21:6: error: ‘include’ was not declared in this scope {#include <cstdio> ^~~~~~~ user.cpp:21:15: error: ‘cstdio’ was not declared in this scope {#include <cstdio> ^~~~~~ user.cpp:23:1: error: expected primary-expression before ‘using’ using namespace std; ^~~~~ user.cpp:26:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:121:1: error: expected ‘}’ at end of input } ^ user.cpp:13:14: warning: unused variable ‘sum’ [-Wunused-variable] long long sum=0; ^~~ user.cpp:14:8: warning: unused variable ‘min1’ [-Wunused-variable] int min1=-99999999,poz1=0; ^~~~ user.cpp:14:23: warning: unused variable ‘poz1’ [-Wunused-variable] int min1=-99999999,poz1=0; ^~~~ user.cpp:19:8: warning: unused variable ‘semn’ [-Wunused-variable] int semn=1,cnt=1; ^~~~ user.cpp:19:15: warning: unused variable ‘cnt’ [-Wunused-variable] int semn=1,cnt=1; ^~~

Ceva nu functioneaza?