Problem workoutplan
User eliasxyz
Submission Time 2025-06-12 12:26:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

workoutplan.cpp: In function ‘int main()’:
workoutplan.cpp:7:6: error: conflicting declaration ‘int A [N]’
7 | int A[N];
| ^
workoutplan.cpp:5:10: note: previous declaration as ‘int A’
5 | int N,K,A;
| ^
workoutplan.cpp:8:12: error: ‘begin’ was not declared in this scope
8 | for(int x:A){
| ^
workoutplan.cpp:8:12: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from workoutplan.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/9/filesystem:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from workoutplan.cpp:1:
/usr/include/c++/9/bits/fs_dir.h:516:3: note: ‘std::filesystem::__cxx11::begin’
516 | begin(recursive_directory_i