Submission #1184241

#TimeUsernameProblemLanguageResultExecution timeMemory
1184241ada_kayaRoom Temperature (JOI24_ho_t1)C++20
Compilation error
0 ms0 KiB
#define int long long #define inf ((int)1e18) using namespace std; void solve(){ int n,t; cin >> n >> t; int a[n]; for(int i = 0; i < n; i++){ cin >> a[i]; } /* int x = a[0] % t; int y = a[1] % t; if(x == 0 || y == 0){ } cout << x << y;*/ cout << 0; } int32_t main(){ fast int x = 1; //cin >> x; while(x--){ solve(); cout << endl; } }

Compilation message (stderr)

Main.cpp: In function 'void solve()':
Main.cpp:7:4: error: 'cin' was not declared in this scope
    7 |    cin >> n >> t;
      |    ^~~
Main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #define int long long
Main.cpp:19:4: error: 'cout' was not declared in this scope
   19 |    cout << 0;
      |    ^~~~
Main.cpp:19:4: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Main.cpp: At global scope:
Main.cpp:22:1: error: 'int32_t' does not name a type
   22 | int32_t main(){
      | ^~~~~~~
Main.cpp:1:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
  +++ |+#include <cstdint>
    1 | #define int long long