Problem potatosalad
User dfsssssssssfsdfdssgdfs
Submission Time 2026-02-19 14:28:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:7:2: error: ‘array’ was not declared in this scope
7 | array[n];
| ^~~~~
potatosalad.cpp:2:1: note: ‘std::array’ is defined in header ‘<array>’; did you forget to ‘#include <array>’?
1 | #include <iostream>
+++ |+#include <array>
2 | using namespace std;
potatosalad.cpp:7:8: error: ‘n’ was not declared in this scope
7 | array[n];
| ^
potatosalad.cpp:8:2: error: ‘clear’ was not declared in this scope
8 | clear(array);
| ^~~~~