Submission #1187374

#TimeUsernameProblemLanguageResultExecution timeMemory
1187374kashfy1234A + B (IOI24_aplusb)C++17
Compilation error
0 ms0 KiB
//inshaAllah #include <bits/stdc++.h> using namespace std; void sum(int a, int b){ cout<<a+b<<"\n"; return sum ; }

Compilation message (stderr)

aplusb.cpp: In function 'void sum(int, int)':
aplusb.cpp:6:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
    6 |     return sum ;
      |            ^~~