Submission #337849

# Submission time Handle Problem Language Result Execution time Memory
337849 2020-12-22T03:26:30 Z beksultan04 Skyline (IZhO11_skyline) C++14
0 / 100
1 ms 384 KB
#include <bits/stdc++.h>
using namespace std;
#define int unsigned long long
#define pii pair<int,int>
#define OK puts("OK");
#define NO puts("NO");
#define YES puts("YES");
#define fr first
#define sc second
#define ret return
#define scan1(a) scanf("%lld",&a);
#define scan2(a,b) scanf("%lld %lld",&a, &b);
#define scan3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
#define all(s) s.begin(),s.end()
#define allr(s) s.rbegin(),s.rend()
#define pb push_back
#define sz(v) (int)v.size()
#define endi puts("");
const int N = 1e6+12,INF=1e9+7;
int dp[201][140001];
int rec(int i,int sum){

}
main(){
    int n,i;
    scan1(n)
    for (i=1;i<=n;++i){

    }
}

Compilation message

skyline.cpp: In function 'long long unsigned int rec(long long unsigned int, long long unsigned int)':
skyline.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
   23 | }
      | ^
skyline.cpp: At global scope:
skyline.cpp:24:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   24 | main(){
      |      ^
skyline.cpp: In function 'int main()':
skyline.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 | #define scan1(a) scanf("%lld",&a);
      |                  ~~~~~^~~~~~~~~~~
skyline.cpp:26:5: note: in expansion of macro 'scan1'
   26 |     scan1(n)
      |     ^~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -