Submission #1120760

#TimeUsernameProblemLanguageResultExecution timeMemory
1120760vjudge1Tracks in the Snow (BOI13_tracks)C++17
Compilation error
0 ms0 KiB
// Telebe of adicto yani AzeTurk810
/*
    Author:             AzeTurk810
    Licance:            open source(only authors name must be in code)
    Begin               Time:11/20/2024 20:48
    Problem link:       https://codeforces.com/problemset/problem/1543/D1

*/
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
bool check(std::string s)
{
    std::string sc = s;
    reverse(sc.begin(),sc.end());
    return sc == s;
}

signed main()
{
    std::ios_base::sync_with_stdio(false);std::cin.tie(0);std::cout.tie(0);
    cout<<2<<endl;
}

Compilation message (stderr)

tracks.cpp: In function 'int main()':
tracks.cpp:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |     cout<<2<<endl;
      |     ^~~~
      |     std::cout
In file included from tracks.cpp:9:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;  /// Linked to standard output
      |                  ^~~~
tracks.cpp:23:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |     cout<<2<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/10/iostream:39,
                 from tracks.cpp:9:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
  681 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~