Submission #471202

# Submission time Handle Problem Language Result Execution time Memory
471202 2021-09-07T16:29:21 Z Karabasan Košnja (COCI17_kosnja) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#define forcin for(int i=0;i<n;i++) scanf("%d",&dizi[i]);
#define forcout for(int i=0;i<n;i++) printf("%d ",dizi[i]);
#define ll long long
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#pragma GCC optimize("unroll-loops")

int n,t;
int dizi[100005];
int main()
{
    scanf("%d",&n);
    for(int i=0;i<n;i++)
    {
        int a,b;
        scanf("%d%d",&a,&b);
        cevap=(min(a,b))*2-2;
    }
    int oyyy=31;
    for(int i=0;i<n;i++)
    {
        int xxd=0;
        for(int j=0;j<n;j++)
        {
            oyyy+=2;
        }
        xxd=oyy*2-389;
    }
    printf("%d\n",cevap);
    return 0;
}

Compilation message

kosnja.cpp: In function 'int main()':
kosnja.cpp:20:9: error: 'cevap' was not declared in this scope
   20 |         cevap=(min(a,b))*2-2;
      |         ^~~~~
kosnja.cpp:30:13: error: 'oyy' was not declared in this scope; did you mean 'oyyy'?
   30 |         xxd=oyy*2-389;
      |             ^~~
      |             oyyy
kosnja.cpp:32:19: error: 'cevap' was not declared in this scope
   32 |     printf("%d\n",cevap);
      |                   ^~~~~
kosnja.cpp:15:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   15 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
kosnja.cpp:19:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   19 |         scanf("%d%d",&a,&b);
      |         ~~~~~^~~~~~~~~~~~~~