Problem coinbag
User oiu890
Submission Time 2024-02-12 12:14:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘int main()’:
coinbag.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin>>n>>m;
| ^~~
coinbag.cpp:5:5: error: ‘memset’ was not declared in this scope
5 | memset(coins,0,sizeof(coins));
| ^~~~~~
coinbag.cpp:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
+++ |+#include <cstring>
1 | int main() {
coinbag.cpp:6:5: error: ‘vector’ was not declared in this scope
6 | vector<int> w,v;
| ^~~~~~
coinbag.cpp:6:12: error: expected primary-expression before ‘int’
6 | vector<int> w,v;
| ^~~
coinbag.cpp:7:11: error: ‘i’ was not declared in this scope
7 | floop(i,0,n){
| ^
coinbag.cpp:7:5: error: ‘floop’ was not declared in this scope
7 | floop(i,0,n){
| ^~~~~
coinbag.cpp:43:5: error: ‘cout