Borderou de evaluare (job #798603)

Utilizator avatar Iancu_Vlad Iancu Vlad Pavel Iancu_Vlad IP ascuns
Problemă 5div Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 2 dec. 2024 15:42:06 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:5: error: expected initializer before 'cin' 11 | cin>>N; | ^~~ main.cpp:12:5: error: 'vector' was not declared in this scope 12 | vector<int>divCount(N+1,0); | ^~~~~~ main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>' 1 | #include <fstream> +++ |+#include <vector> 2 | main.cpp:12:12: error: expected primary-expression before 'int' 12 | vector<int>divCount(N+1,0); | ^~~ main.cpp:13:20: error: 'N' was not declared in this scope 13 | for(int i=1;i<=N;i++) | ^ main.cpp:17:13: error: 'divCount' was not declared in this scope 17 | divCount[j]++; | ^~~~~~~~ main.cpp:21:20: error: 'N' was not declared in this scope 21 | for(int i=1;i<=N;i++) | ^ main.cpp:23:12: error: 'divCount' was not declared in this scope 23 | if(divCount[i]>=5) | ^~~~~~~~