Submisie


Utilizator
Problema
Data
Compilator
Scor
3 August 2026, 22:52
c++14
E.C.

fail

Mesaj compilare

        main.cpp: In function ‘int main()’:
main.cpp:32:5: error: ‘cin’ was not declared in this scope
   32 |     cin>>n>>m;
      |     ^~~
main.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
    3 | #include <algorithm>
  +++ |+#include <iostream>
    4 | using namespace std;
main.cpp:75:9: error: ‘cout’ was not declared in this scope
   75 |         cout<<ans[i]<<"\n";
      |         ^~~~
main.cpp:75:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?