Borderou de evaluare (job #689723)

Utilizator avatar vladnicu Vlad Nicu vladnicu IP ascuns
Problemă Sequences Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 23 ian. 2023 07:00:26 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:29: error: expected ',' or ';' before 'l' 5 | ifstream cin("sequences.in")l | ^ main.cpp: In function 'int main()': main.cpp:24:9: error: 'cout' was not declared in this scope 24 | cout << ans << endl; | ^~~~ main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include<algorithm> +++ |+#include <iostream> 3 | main.cpp:30:13: error: 'a' was not declared in this scope 30 | a[x[i]]=1; | ^ main.cpp:36:16: error: 'a' was not declared in this scope 36 | if(a[current]) | ^ main.cpp:45:9: error: 'cout' was not declared in this scope 45 | cout << ans << endl; | ^~~~ main.cpp:45:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:55:17: error: 'a' was not declared in this scope 55 | a[cnt]=x[2]*i2+x[3]*i3; | ^ main.cpp:65:21: error: 'a' was not declared in this scope 65 | a[cnt]=x[2]*i2+x[3]*i3+x[4]*i4; | ^ main.cpp:76:25: error: 'a' was not declared in this scope 76 | a[cnt]=x[2]*i2+x[3]*i3+x[4]*i4+x[5]*i5; | ^ main.cpp:80:10: error: 'a' was not declared in this scope 80 | sort(a,a+cnt); | ^ main.cpp:95:5: error: 'cout' was not declared in this scope 95 | cout << ans << endl; | ^~~~ main.cpp:95:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?